2011-07-07 10 views

答えて

0

Completedコールバックを設定する必要があります。 WorkflowApplicationはワークフローを非同期に実行しますが、WorkflowInvokerは完了するまでブロックします。 System.Collections.Generic.Dictionary <文字列、オブジェクト>」に '<文字列、オブジェクト> System.Collections.Generic.IDictionary' \t暗黙的にタイプを変換できません -

var flag = new ManualResetEvent(); 
var app = new WorkflowApplication(activity); 
Dictionary<string,object> results = null; 
app.Completed = x => 
{ 
    results = x.Outputs; 
    flag.Set(); 
}; 
app.Run(); 
// run the application, wait for it to complete 
flag.WaitOne(Timeout.Infinite); 
// Completed has executed at this point 
+0

HM iはx.Outputsで次のエラーを得ました' – pikk

+0

IDictionaryとDictionaryで試してみましたが、IDictionaryを置いて実行すると – pikk

+0

は動作しません。HttpContext.Current.Response.Writeでnull参照例外が発生すると、出力([ "res"]); – pikk

関連する問題