C# Class NUnit.Framework.Internal.AsyncInvocationRegion

Inheritance: IDisposable
Mostra file Open project: nunit/nunit

Public Methods

Method Description
Create ( Delegate @delegate ) : AsyncInvocationRegion
Create ( MethodInfo method ) : AsyncInvocationRegion
Dispose ( ) : void
IsAsyncOperation ( Delegate @delegate ) : bool
IsAsyncOperation ( MethodInfo method ) : bool
WaitForPendingOperationsToComplete ( object invocationResult ) : object

Waits for pending asynchronous operations to complete, if appropriate, and returns a proper result of the invocation by unwrapping task results

Private Methods

Method Description
AsyncInvocationRegion ( ) : System

Method Details

Create() public static method

public static Create ( Delegate @delegate ) : AsyncInvocationRegion
@delegate System.Delegate
return AsyncInvocationRegion

Create() public static method

public static Create ( MethodInfo method ) : AsyncInvocationRegion
method System.Reflection.MethodInfo
return AsyncInvocationRegion

Dispose() public method

public Dispose ( ) : void
return void

IsAsyncOperation() public static method

public static IsAsyncOperation ( Delegate @delegate ) : bool
@delegate System.Delegate
return bool

IsAsyncOperation() public static method

public static IsAsyncOperation ( MethodInfo method ) : bool
method System.Reflection.MethodInfo
return bool

WaitForPendingOperationsToComplete() public abstract method

Waits for pending asynchronous operations to complete, if appropriate, and returns a proper result of the invocation by unwrapping task results
public abstract WaitForPendingOperationsToComplete ( object invocationResult ) : object
invocationResult object The raw result of the method invocation
return object