﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Database Deployment Toolkit » Database Deployment Toolkit (How do I?)  » DDT Asynchronous</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 03:10:37 GMT</lastBuildDate><ttl>20</ttl><item><title>DDT Asynchronous</title><link>http://forum.strataframe.net/FindPost28908.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;&lt;div&gt;I noticed that the DatabaseMigrator.DeployMetaData &amp;amp; Database.Migrator.Deploydata methods are both Asynchronous.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Is there a way to call the methods synchronous instead?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;I need this as I need to call different methods depending on whether the database deployment was successfull or not.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Thanks,&lt;div&gt;Melvin</description><pubDate>Mon, 15 Nov 2010 04:57:15 GMT</pubDate><dc:creator>Melvin Xuereb</dc:creator></item><item><title>RE: DDT Asynchronous</title><link>http://forum.strataframe.net/FindPost28967.aspx</link><description>Glad you got it working. ;)</description><pubDate>Mon, 15 Nov 2010 04:57:15 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: DDT Asynchronous</title><link>http://forum.strataframe.net/FindPost28966.aspx</link><description>Thanks for your feedback,&lt;br/&gt;&lt;br/&gt;&lt;div&gt;I solved the problem by Sleeping the thread for a second if the Build Complete event is not yet fired.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Thanks again and good day :)</description><pubDate>Mon, 15 Nov 2010 04:48:24 GMT</pubDate><dc:creator>Melvin Xuereb</dc:creator></item><item><title>RE: DDT Asynchronous</title><link>http://forum.strataframe.net/FindPost28930.aspx</link><description>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.&amp;nbsp;And maybe I am saying a lot of nonsenses and if so, I am really sorry. :hehe:</description><pubDate>Wed, 10 Nov 2010 08:21:05 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: DDT Asynchronous</title><link>http://forum.strataframe.net/FindPost28913.aspx</link><description>That would be a work around, but would not be optimal for maintainability.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Thanks,&lt;div&gt;Melvin</description><pubDate>Mon, 08 Nov 2010 04:32:14 GMT</pubDate><dc:creator>Melvin Xuereb</dc:creator></item><item><title>RE: DDT Asynchronous</title><link>http://forum.strataframe.net/FindPost28912.aspx</link><description>Then at this point&amp;nbsp;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.</description><pubDate>Mon, 08 Nov 2010 03:23:03 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: DDT Asynchronous</title><link>http://forum.strataframe.net/FindPost28911.aspx</link><description>&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;Hi Ivan,&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;Thanks for your reply but&amp;nbsp;unfortunately placing the code in the 'Build Complete' event does not solve my problem. I have&amp;nbsp;the following scenario:&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;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:&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;1. I execute the database package through strataframe API.&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;2. If successfull, deploy the .Net website files.&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;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.&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;Any suggestions?&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;Thanks,&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font class="Apple-style-span" color="#1F5080" face="verdana, arial, tahoma" size="3"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;Melvin&lt;/span&gt;&lt;/font&gt;</description><pubDate>Mon, 08 Nov 2010 01:51:11 GMT</pubDate><dc:creator>Melvin Xuereb</dc:creator></item><item><title>RE: DDT Asynchronous</title><link>http://forum.strataframe.net/FindPost28910.aspx</link><description>Hi Melvin.&lt;br/&gt;&lt;br/&gt;Have a look at this whole thread and see if it helps:&lt;br/&gt;&lt;br/&gt;&lt;a href="http://forum.strataframe.net/FindPost20760.aspx"&gt;&lt;a href="http://forum.strataframe.net/FindPost20760.aspx"&gt;http://forum.strataframe.net/FindPost20760.aspx&lt;/a&gt;&lt;/a&gt;</description><pubDate>Fri, 05 Nov 2010 07:14:40 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>