Class RequestListenerFactory
Defines a method for creating a delegate that, when invoked, returns a
Inheritance
System.Object
RequestListenerFactory
Implements
Namespace: Copper.Remoting.Service
Assembly: Copper.Remoting.Service.dll
Syntax
public class RequestListenerFactory : ICommunicationListenerFactory
Constructors
View SourceRequestListenerFactory(IRequestReceiver, ListenerMetadata, ServiceMetadata)
Initializes a new instance of the RequestListenerFactory class.
Declaration
public RequestListenerFactory(IRequestReceiver requestReceiver, ListenerMetadata listenerMetadata, ServiceMetadata serviceMetadata = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IRequestReceiver | requestReceiver | The request receiver. |
| ListenerMetadata | listenerMetadata | The listener metadata. |
| ServiceMetadata | serviceMetadata | The service metadata. |
Methods
View SourceCreateFor<TContract, TImplementation>(TContract)
Creates a delegate that, when invoked, returns a
Declaration
public Func<StatelessServiceContext, ICommunicationListener> CreateFor<TContract, TImplementation>(TContract serviceInstance)
where TContract : class where TImplementation : class, TContract
Parameters
| Type | Name | Description |
|---|---|---|
| TContract | serviceInstance | The service instance. |
Returns
| Type | Description |
|---|---|
| System.Func<StatelessServiceContext, ICommunicationListener> | A delegate that, when invoked, returns a |
Type Parameters
| Name | Description |
|---|---|
| TContract | The service contract type. |
| TImplementation | The service implementation type. |