Class ServiceHost<TServiceHostBuilder>
Provides capabilities to run a service host.
Inheritance
System.Object
ServiceHost<TServiceHostBuilder>
Implements
System.IDisposable
Namespace: Copper.Service
Assembly: Copper.Service.dll
Syntax
public sealed class ServiceHost<TServiceHostBuilder> : IDisposable where TServiceHostBuilder : ServiceHostBuilder<TServiceHostBuilder>
Type Parameters
| Name | Description |
|---|---|
| TServiceHostBuilder |
Constructors
View SourceServiceHost(ServiceHostConfiguration, ServiceHostBuilder<TServiceHostBuilder>)
Initializes a new instance of the ServiceHost<TServiceHostBuilder> class.
Declaration
public ServiceHost(ServiceHostConfiguration serviceHostConfiguration, ServiceHostBuilder<TServiceHostBuilder> serviceHostBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| ServiceHostConfiguration | serviceHostConfiguration | The service host configuration. |
| ServiceHostBuilder<TServiceHostBuilder> | serviceHostBuilder | The service host builder. |
Methods
View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Run()
Runs the service host.
Declaration
public void Run()
RunAsync()
Runs the service host.
Declaration
public async Task RunAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
Implements
System.IDisposable