示例#1
0
 private void Write(ConcreteExecuteAsyncMethod method)
 {
     WriteSignature(method);
     using (_builder.IndentBraced)
     {
         _("var tsc = new global::System.Threading.Tasks.TaskCompletionSource<{0}>();", method.EntityIdentifier);
         _("tsc.SetResult(this);");
         _("return tsc.Task;");
     }
 }
示例#2
0
 private void Write(ConcreteExecuteAsyncMethod method)
 {
     WriteSignature(method);
     using (_builder.IndentBraced)
     {
         _("var tsc = new global::System.Threading.Tasks.TaskCompletionSource<{0}>();", method.EntityIdentifier);
         _("tsc.SetResult(this);");
         _("return tsc.Task;");
     }
 }