Show / Hide Table of Contents

    Class RequestListenerFactory

    Defines a method for creating a delegate that, when invoked, returns a for a given .

    Inheritance
    System.Object
    RequestListenerFactory
    Implements
    ICommunicationListenerFactory
    Namespace: Copper.Remoting.Service
    Assembly: Copper.Remoting.Service.dll
    Syntax
    public class RequestListenerFactory : ICommunicationListenerFactory

    Constructors

    View Source

    RequestListenerFactory(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 Source

    CreateFor<TContract, TImplementation>(TContract)

    Creates a delegate that, when invoked, returns a for a given .

    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 for a given .

    Type Parameters
    Name Description
    TContract

    The service contract type.

    TImplementation

    The service implementation type.

    Implements

    ICommunicationListenerFactory
    • View Source
    Back to top Generated by DocFX