public void RunBuildTask(IAgentBuildContext context, RemoteTaskCompletionSource <object> completeEvent) { Task.Run(async() => { await buildTaskRegistry.ExecuteTask(context, CancellationToken.None); return((object)null); }).ContinueWith(completeEvent.FromTask); }
public void RunBuildTask(IAgentBuildContext context, RemoteTaskCompletionSource completeEvent) { buildTaskRegistry.ExecuteTask(context, CancellationToken.None) .ContinueWith(completeEvent.FromTask); }