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;"); } }