Show / Hide Table of Contents

    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 Source

    ServiceHost(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 Source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()
    View Source

    Run()

    Runs the service host.

    Declaration
    public void Run()
    View Source

    RunAsync()

    Runs the service host.

    Declaration
    public async Task RunAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    Implements

    System.IDisposable
    • View Source
    Back to top Generated by DocFX