Show / Hide Table of Contents

    Class AsyncMethodDispatcher<TContract>

    Provides the capability to invoke asynchronous operations on a given instance that implements the specified contract.

    Inheritance
    System.Object
    AsyncMethodDispatcher<TContract>
    Namespace: Copper.Common.Dispatcher
    Assembly: Copper.Common.dll
    Syntax
    public class AsyncMethodDispatcher<TContract>
    Type Parameters
    Name Description
    TContract

    The type of the contract.

    Constructors

    View Source

    AsyncMethodDispatcher(TContract)

    Initializes a new instance of the AsyncMethodDispatcher<TContract> class.

    Declaration
    public AsyncMethodDispatcher(TContract instance)
    Parameters
    Type Name Description
    TContract instance

    The instance to invoke the operations on.

    Methods

    View Source

    InvokeAsync(MethodInfo, Object[])

    Invokes the asynchronous operation on the instance.

    Declaration
    public async Task<InvocationResult> InvokeAsync(MethodInfo methodInfo, params object[] parameters)
    Parameters
    Type Name Description
    System.Reflection.MethodInfo methodInfo

    The method information.

    System.Object[] parameters

    The parameters.

    Returns
    Type Description
    System.Threading.Tasks.Task<InvocationResult>

    An instance of the InvocationResult class containing the result of the asynchronous operation invocation.

    • View Source
    Back to top Generated by DocFX