Class DiscoveryServiceServiceHostBuilderExtensions
Inheritance
System.Object
DiscoveryServiceServiceHostBuilderExtensions
Namespace: Copper.Service
Assembly: Copper.Discovery.Service.dll
Syntax
public static class DiscoveryServiceServiceHostBuilderExtensions
Methods
View SourceAppendDiscoveryServiceInstanceListener<TDiscoveryServiceInstanceListenerBuilder>(ServiceHostBuilder, Func<IServiceProvider, TDiscoveryServiceInstanceListenerBuilder>)
Appends a discovery service instance listener to the service host.
Declaration
public static ServiceHostBuilder AppendDiscoveryServiceInstanceListener<TDiscoveryServiceInstanceListenerBuilder>(this ServiceHostBuilder serviceHostBuilder, Func<IServiceProvider, TDiscoveryServiceInstanceListenerBuilder> implementationFactory)
where TDiscoveryServiceInstanceListenerBuilder : DiscoveryServiceInstanceListenerBuilder<TDiscoveryServiceInstanceListenerBuilder>
Parameters
Type | Name | Description |
---|---|---|
ServiceHostBuilder | serviceHostBuilder | The service host builder. |
System.Func<System.IServiceProvider, TDiscoveryServiceInstanceListenerBuilder> | implementationFactory | A factory method to create a DiscoveryServiceInstanceListenerBuilder<TDiscoveryServiceInstanceListenerBuilder> |
Returns
Type | Description |
---|---|
ServiceHostBuilder | The same instance of |
Type Parameters
Name | Description |
---|---|
TDiscoveryServiceInstanceListenerBuilder | The discovery service instance listener builder type. |