src/Foundation/ServiceModel/Gimela.ServiceModel.ManagedDiscovery/DiscoveryProxy/AsyncResult/AsyncResult.cs
/// <summary>
/// Completes the specified completed synchronously.
/// Call this version of complete if you raise an exception during processing.  In addition to notifying
/// the callback, it will capture the exception and store it to be thrown during AsyncResult.End.
/// </summary>
/// <param name="completedSynchronously">if set to <c>true</c> [completed synchronously].</param>
/// <param name="exception">The exception.</param>
Completes the specified completed synchronously.
Call this version of complete if you raise an exception during processing.  In addition to notifying
the callback, it will capture the exception and store it to be thrown during AsyncResult.End.
Completes the specified completed synchronously . Call this version of complete if you raise an exception during processing . In addition to notifying the callback it will capture the exception and store it to be thrown during AsyncResult . End .
protected void Complete(bool completedSynchronously, Exception exception)
    {
      this.completeException = exception;
      this.Complete(completedSynchronously);
    }
protected void Complete ( bool completedSynchronously , Exception exception ) { this . completeException = exception ; this . Complete ( completedSynchronously ) ; }
Completes the specified completed synchronously.
Completes the specified completed synchronously .
completedSynchronously
bool
if set to true
if set to true
exception
Exception
None