Class EventingServiceServiceHostBuilderExtensions
Service
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 |
---|---|---|
Service |
serviceHostBuilder | The service host builder. |
System. |
implementationFactory | A factory method to create a Event |
Returns
Type | Description |
---|---|
Service |
The same instance of Service |
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 |
---|---|---|
Service |
serviceHostBuilder | The service host builder. |
System. |
listenerName | The listener name. |
TContract | instance | The service instance. |
Returns
Type | Description |
---|---|
Service |
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 |
---|---|---|
Service |
serviceHostBuilder | The service host builder. |
System. |
listenerName | The listener name. |
System. |
configureDelegate | A delegate that configures a Event |
Returns
Type | Description |
---|---|
Service |
The same instance of Service |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
TImplementation | The implementation type. |