Class ServiceInstanceListenerBuilder<TServiceInstanceListenerBuilder>
Provides the abstract builder class for a ServiceInstanceListener.
Inheritance
Implements
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 SourceServiceInstanceListenerBuilder(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 SourceContractType
Gets the service contract type.
Declaration
public Type ContractType { get; }
Property Value
Type | Description |
---|---|
System.Type | The service contract type. |
ImplementationType
Gets the service implementation type.
Declaration
public Type ImplementationType { get; }
Property Value
Type | Description |
---|---|
System.Type | The service implementation type. |
ListenerName
Gets the listener name.
Declaration
public string ListenerName { get; }
Property Value
Type | Description |
---|---|
System.String | The listener name. |
Methods
View SourceAppendReceiveInterceptor<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. |
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 |