Class RequestReceiver
Represents an endpoint that listens for requests for a given service contract when started using the ServiceWire transport.
Inheritance
System.Object
RequestReceiver
Namespace: Copper.Remoting.ServiceWire.Common.V1
Assembly: Copper.Remoting.ServiceWire.Common.dll
Syntax
public class RequestReceiver : IRequestReceiver, IEndpoint
Constructors
View SourceRequestReceiver(RequestReceiverSettings, IDispatchMessageFormatter)
Initializes a new instance of the Request
Declaration
public RequestReceiver(RequestReceiverSettings requestReceiverSettings, IDispatchMessageFormatter dispatchMessageFormatter)
Parameters
| Type | Name | Description |
|---|---|---|
| Request |
requestReceiverSettings | The request receiver settings. |
| IDispatch |
dispatchMessageFormatter | The dispatch message formatter. |
Methods
View SourceRetrieveEndpointMetadata()
Retrieves the endpoint's metadata.
Declaration
public EndpointMetadata RetrieveEndpointMetadata()
Returns
| Type | Description |
|---|---|
| Endpoint |
The endpoint's metadata. |
Start<TContract>(TContract)
Starts the endpoint, causing it to start listening for requests.
Declaration
public Task<string> Start<TContract>(TContract instance)
where TContract : class
Parameters
| Type | Name | Description |
|---|---|---|
| TContract | instance | The instance implementing the service contract. |
Returns
| Type | Description |
|---|---|
| System. |
A System. |
Type Parameters
| Name | Description |
|---|---|
| TContract | The service contract type. |
Stop()
Stops the endpoint, causing it to not receive any requests.
Declaration
public Task Stop()
Returns
| Type | Description |
|---|---|
| System. |
A System. |