Class RequestSubmitter
Provides the capability to submit service requests using the WCF transport.
Inheritance
Namespace: Copper.Remoting.Wcf.Common.V1
Assembly: Copper.Remoting.Wcf.Common.dll
Syntax
public class RequestSubmitter : IRequestSubmitter, IDisposable
Constructors
View SourceRequestSubmitter(RequestSubmitterSettings, ChannelFactoryConfiguration)
Initializes a new instance of the RequestSubmitter class.
Declaration
public RequestSubmitter(RequestSubmitterSettings requestSubmitterSettings, ChannelFactoryConfiguration channelFactoryConfiguration = null)
Parameters
Type | Name | Description |
---|---|---|
RequestSubmitterSettings | requestSubmitterSettings | The request submitter settings. |
ChannelFactoryConfiguration | channelFactoryConfiguration | The channel factory configuration. |
Properties
View SourceIsFaulted
Gets a value indicating whether this instance is faulted.
Declaration
public bool IsFaulted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
|
Request(MethodInfo, Object[])
Submits a request-response type service request.
Declaration
public async 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
public 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. |