Show / Hide Table of Contents

    Class ServiceInstanceListenerBuilder<TServiceInstanceListenerBuilder>

    Provides the abstract builder class for a ServiceInstanceListener.

    Inheritance
    System.Object
    ComponentBuilder
    ComponentBuilder<ServiceInstanceListener, TServiceInstanceListenerBuilder>
    ServiceInstanceListenerBuilder<TServiceInstanceListenerBuilder>
    EventServiceInstanceListenerBuilder<TEventServiceInstanceListenerBuilder>
    EventServiceInstanceListenerBuilder<TEventServiceInstanceListenerBuilder>
    EventServiceInstanceListenerBuilder<TEventServiceInstanceListenerBuilder>
    RequestServiceInstanceListenerBuilder<TRequestServiceInstanceListenerBuilder>
    RequestServiceInstanceListenerBuilder<TRequestServiceInstanceListenerBuilder>
    RequestServiceInstanceListenerBuilder<TRequestServiceInstanceListenerBuilder>
    Implements
    System.IDisposable
    Namespace: Copper.Service
    Assembly: Copper.Service.dll
    Syntax
    public abstract class ServiceInstanceListenerBuilder<TServiceInstanceListenerBuilder> : ComponentBuilder<ServiceInstanceListener, TServiceInstanceListenerBuilder>, IDisposable where TServiceInstanceListenerBuilder : ServiceInstanceListenerBuilder<TServiceInstanceListenerBuilder>
    Type Parameters
    Name Description
    TServiceInstanceListenerBuilder

    The service instance listener builder type.

    Constructors

    View Source

    ServiceInstanceListenerBuilder(Type, Type, String)

    Initializes a new instance of the ServiceInstanceListenerBuilder<TServiceInstanceListenerBuilder> class.

    Declaration
    protected ServiceInstanceListenerBuilder(Type contractType, Type implementationType, string listenerName)
    Parameters
    Type Name Description
    System.Type contractType

    The service contract type.

    System.Type implementationType

    The service implementation type.

    System.String listenerName

    The listener name.

    Properties

    View Source

    ContractType

    Gets the service contract type.

    Declaration
    public Type ContractType { get; }
    Property Value
    Type Description
    System.Type

    The service contract type.

    View Source

    ImplementationType

    Gets the service implementation type.

    Declaration
    public Type ImplementationType { get; }
    Property Value
    Type Description
    System.Type

    The service implementation type.

    View Source

    ListenerName

    Gets the listener name.

    Declaration
    public string ListenerName { get; }
    Property Value
    Type Description
    System.String

    The listener name.

    Methods

    View Source

    AppendReceiveInterceptor<TReceiveInterceptor>(Func<IServiceProvider, TReceiveInterceptor>)

    Appends a receive interceptor to the listener.

    Declaration
    public TServiceInstanceListenerBuilder AppendReceiveInterceptor<TReceiveInterceptor>(Func<IServiceProvider, TReceiveInterceptor> configureDelegate = null)
        where TReceiveInterceptor : class, IReceiveInterceptor
    Parameters
    Type Name Description
    System.Func<System.IServiceProvider, TReceiveInterceptor> configureDelegate

    A factory method to create a receive interceptor.

    Returns
    Type Description
    TServiceInstanceListenerBuilder

    The same instance of ServiceInstanceListenerBuilder<TServiceInstanceListenerBuilder> for chaining.

    Type Parameters
    Name Description
    TReceiveInterceptor

    The receive interceptor type.

    View Source

    ConfigureServiceInstanceProxyFactoryComponentConfiguration(Action<ChildComponentConfiguration<ServiceInstanceProxyFactoryBuilder>>)

    Configures service instance listener's service instance proxy component configuration.

    Declaration
    public TServiceInstanceListenerBuilder ConfigureServiceInstanceProxyFactoryComponentConfiguration(Action<ChildComponentConfiguration<ServiceInstanceProxyFactoryBuilder>> configureDelegate)
    Parameters
    Type Name Description
    System.Action<ChildComponentConfiguration<ServiceInstanceProxyFactoryBuilder>> configureDelegate

    The delegate for configuring the ChildComponentConfiguration<TChildComponentBuilder>.

    Returns
    Type Description
    TServiceInstanceListenerBuilder

    Implements

    System.IDisposable
    • View Source
    In This Article
    • Constructors
      • ServiceInstanceListenerBuilder(Type, Type, String)
    • Properties
      • ContractType
      • ImplementationType
      • ListenerName
    • Methods
      • AppendReceiveInterceptor<TReceiveInterceptor>(Func<IServiceProvider, TReceiveInterceptor>)
      • ConfigureServiceInstanceProxyFactoryComponentConfiguration(Action<ChildComponentConfiguration<ServiceInstanceProxyFactoryBuilder>>)
    • Implements
    Back to top Generated by DocFX