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