Interface IRequestSubmitter
Provides the capability to submit service requests.
Namespace: Copper.Remoting.Common.Interface
Assembly: Copper.Remoting.Common.dll
Syntax
public interface IRequestSubmitter : IDisposable
Properties
View SourceIsFaulted
Gets a value indicating whether this instance is faulted.
Declaration
bool IsFaulted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
View SourceRequest(MethodInfo, Object[])
Submits a request-response type service request.
Declaration
Task<object> Request(MethodInfo methodInfo, object[] arguments)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | methodInfo | The method information of the method to be invoked on the service. |
System.Object[] | arguments | The arguments of the method to be invoked on the service. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> | A System.Threading.Tasks.Task that represents outstanding operation. The result of the Task is the value returned by the service. |
RequestOneWay(MethodInfo, Object[])
Submits a one-way type service request.
Declaration
Task RequestOneWay(MethodInfo methodInfo, object[] arguments)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | methodInfo | The method information of the method to be invoked on the service. |
System.Object[] | arguments | The arguments of the method to be invoked on the service. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task that represents outstanding operation. |