Show / Hide Table of Contents

    Interface ICommunicationListenerFactory

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

    Namespace: Copper.Service.Interface
    Assembly: Copper.Service.dll
    Syntax
    public interface ICommunicationListenerFactory

    Methods

    View Source

    CreateFor<TContract, TImplementation>(TContract)

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

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

    Type Parameters
    Name Description
    TContract

    The service contract type.

    TImplementation

    The service implementation type.

    • View Source
    Back to top Generated by DocFX