Class RemotingServiceServiceHostBuilderExtensions
ServiceHostBuilder extensions.
Inheritance
System.Object
RemotingServiceServiceHostBuilderExtensions
Namespace: Copper.Service
Assembly: Copper.Remoting.Service.dll
Syntax
public static class RemotingServiceServiceHostBuilderExtensions
Methods
View SourceAppendRemotingServiceInstanceListener(ServiceHostBuilder, Func<IServiceProvider, RequestServiceInstanceListenerBuilder>)
Appends a request service instance listener to the service host.
Declaration
public static ServiceHostBuilder AppendRemotingServiceInstanceListener(this ServiceHostBuilder serviceHostBuilder, Func<IServiceProvider, RequestServiceInstanceListenerBuilder> implementationFactory)
Parameters
Type | Name | Description |
---|---|---|
ServiceHostBuilder | serviceHostBuilder | The service host builder. |
System.Func<System.IServiceProvider, RequestServiceInstanceListenerBuilder> | implementationFactory | A factory method to create a RequestServiceInstanceListenerBuilder instance. |
Returns
Type | Description |
---|---|
ServiceHostBuilder | The same instance of ServiceHostBuilder for chaining. |
AppendRemotingServiceInstanceListener<TContract, TImplementation>(ServiceHostBuilder, String, TContract)
Appends a request service instance listener to the service host.
Declaration
public static ServiceHostBuilder AppendRemotingServiceInstanceListener<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. |
AppendRemotingServiceInstanceListener<TContract, TImplementation>(ServiceHostBuilder, String, Action<RequestServiceInstanceListenerBuilder>)
Appends a request service instance listener to the service host.
Declaration
public static ServiceHostBuilder AppendRemotingServiceInstanceListener<TContract, TImplementation>(this ServiceHostBuilder serviceHostBuilder, string listenerName, Action<RequestServiceInstanceListenerBuilder> 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<RequestServiceInstanceListenerBuilder> | configureDelegate | A delegate that configures a RequestServiceInstanceListenerBuilder instance. |
Returns
Type | Description |
---|---|
ServiceHostBuilder | The same instance of ServiceHostBuilder for chaining. |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
TImplementation | The implementation type. |