Class ServiceHost
Provides capabilities to run a service host.
Inheritance
System.Object
ServiceHost
Implements
System.IDisposable
Namespace: Copper.Service
Assembly: Copper.Service.dll
Syntax
public sealed class ServiceHost : IDisposable
Constructors
View SourceServiceHost(ServiceHostConfiguration, ServiceRuntime, IServiceProvider)
Initializes a new instance of the ServiceHost class.
Declaration
public ServiceHost(ServiceHostConfiguration serviceHostConfiguration, ServiceRuntime serviceRuntime, IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
ServiceHostConfiguration | serviceHostConfiguration | The service host configuration. |
ServiceRuntime | serviceRuntime | The service runtime. |
System.IServiceProvider | serviceProvider | The service provider. |
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