Show / Hide Table of Contents

    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 Source

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