Example #1
0
 /// <summary>
 /// Starts the request asynchronously and immediately returns control to the caller.
 /// </summary>
 /// <exception cref="System.InvalidOperationException">The request has already been started or is already complete.</exception>
 private void ExecuteAsync(BuildSubmissionCompleteCallback callback, object context, bool allowMainThreadBuild)
 {
     ErrorUtilities.VerifyThrowInvalidOperation(!IsCompleted, "SubmissionAlreadyComplete");
     _completionCallback = callback;
     AsyncContext        = context;
     BuildManager.ExecuteSubmission(this, allowMainThreadBuild);
 }
Example #2
0
 /// <summary>
 /// Starts the request asynchronously and immediately returns control to the caller.
 /// </summary>
 /// <exception cref="System.InvalidOperationException">The request has already been started or is already complete.</exception>
 public void ExecuteAsync(GraphBuildSubmissionCompleteCallback callback, object context)
 {
     ErrorUtilities.VerifyThrowInvalidOperation(!IsCompleted, "SubmissionAlreadyComplete");
     _completionCallback = callback;
     AsyncContext        = context;
     BuildManager.ExecuteSubmission(this);
 }