DDT Asynchronous


Author
Message
Melvin Xuereb
Melvin Xuereb
StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)
Group: Forum Members
Posts: 29, Visits: 128
Hi,

I noticed that the DatabaseMigrator.DeployMetaData & Database.Migrator.Deploydata methods are both Asynchronous.

Is there a way to call the methods synchronous instead? 

I need this as I need to call different methods depending on whether the database deployment was successfull or not.

Thanks,
Melvin
Tags
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Melvin.

Have a look at this whole thread and see if it helps:

http://forum.strataframe.net/FindPost20760.aspx
Melvin Xuereb
Melvin Xuereb
StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)
Group: Forum Members
Posts: 29, Visits: 128
Hi Ivan,
Thanks for your reply but unfortunately placing the code in the 'Build Complete' event does not solve my problem. I have the following scenario:

I am developing a deployment tool which can execute both .Net websites package and database package. The following process is in used at the moment:

1. I execute the database package through strataframe API.
2. If successfull, deploy the .Net website files.


There might be times that the update will consist only of .Net website files, thus the Build Complete event is never fired. This is why i need to run this method synchronously.

Any suggestions?

Thanks,
Melvin
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Then at this point I don't know, Melvin. Just wondering, wouldn't you be able to flag your application showing that there is no need to run the DDT? In that case, you would skip this step and go directly to your website deployment.
Melvin Xuereb
Melvin Xuereb
StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)
Group: Forum Members
Posts: 29, Visits: 128
That would be a work around, but would not be optimal for maintainability.

Thanks,
Melvin
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
OK, but can't you always send a DDT package? Do you mean that sometimes there won't be any? If you can send the package, maybe you could have a different DDT project that wouldn't do anything, but this way you would get a Build Complete being called and carry on from there. And maybe I am saying a lot of nonsenses and if so, I am really sorry. Hehe
Melvin Xuereb
Melvin Xuereb
StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)StrataFrame Novice (103 reputation)
Group: Forum Members
Posts: 29, Visits: 128
Thanks for your feedback,

I solved the problem by Sleeping the thread for a second if the Build Complete event is not yet fired.

Thanks again and good day Smile
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Glad you got it working. Wink
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search