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 SourceAsyncMethodDispatcher(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 SourceInvokeAsync(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. |
methodInfo | The method information. |
System. |
parameters | The parameters. |
Returns
Type | Description |
---|---|
System. |
An instance of the Invocation |