Class EventingServiceServiceHostBuilderExtensions
ServiceHostBuilder extensions.
Inheritance
System.Object
EventingServiceServiceHostBuilderExtensions
Namespace: Copper.Service
Assembly: Copper.Eventing.Service.dll
Syntax
public static class EventingServiceServiceHostBuilderExtensions
Methods
View SourceAppendEventServiceInstanceListener(ServiceHostBuilder, Func<IServiceProvider, EventServiceInstanceListenerBuilder>)
Appends an eventing service instance listener to the service host.
Declaration
public static ServiceHostBuilder AppendEventServiceInstanceListener(this ServiceHostBuilder serviceHostBuilder, Func<IServiceProvider, EventServiceInstanceListenerBuilder> implementationFactory)
Parameters
Type | Name | Description |
---|---|---|
ServiceHostBuilder | serviceHostBuilder | The service host builder. |
System.Func<System.IServiceProvider, EventServiceInstanceListenerBuilder> | implementationFactory | A factory method to create a EventServiceInstanceListenerBuilder instance. |
Returns
Type | Description |
---|---|
ServiceHostBuilder | The same instance of ServiceHostBuilder for chaining. |
AppendEventServiceInstanceListener<TContract, TImplementation>(ServiceHostBuilder, String, TContract)
Appends an eventing service instance listener to the service host.
Declaration
public static ServiceHostBuilder AppendEventServiceInstanceListener<TContract, TImplementation>(this ServiceHostBuilder serviceHostBuilder, string listenerName, TContract instance)
where TContract : class where TImplementation : class, TContract
Parameters
Type | Name | Description |
---|---|---|
ServiceHostBuilder | serviceHostBuilder | The service host builder. |
System.String | listenerName | The listener name. |
TContract | instance | The service instance. |
Returns
Type | Description |
---|---|
ServiceHostBuilder |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
TImplementation | The implementation type. |
AppendEventServiceInstanceListener<TContract, TImplementation>(ServiceHostBuilder, String, Action<EventServiceInstanceListenerBuilder>)
Appends an eventing service instance listener to the service host.
Declaration
public static ServiceHostBuilder AppendEventServiceInstanceListener<TContract, TImplementation>(this ServiceHostBuilder serviceHostBuilder, string listenerName, Action<EventServiceInstanceListenerBuilder> configureDelegate = null)
where TContract : class where TImplementation : class, TContract
Parameters
Type | Name | Description |
---|---|---|
ServiceHostBuilder | serviceHostBuilder | The service host builder. |
System.String | listenerName | The listener name. |
System.Action<EventServiceInstanceListenerBuilder> | configureDelegate | A delegate that configures a EventServiceInstanceListenerBuilder instance. |
Returns
Type | Description |
---|---|
ServiceHostBuilder | The same instance of ServiceHostBuilder for chaining. |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
TImplementation | The implementation type. |