Show / Hide Table of Contents

    Class ApplicationHost

    Provides capabilities to run service hosts in the scope of an application.

    Inheritance
    System.Object
    ApplicationHost
    Implements
    System.IDisposable
    Namespace: Copper.Hosting
    Assembly: Copper.Hosting.dll
    Syntax
    public class ApplicationHost : IDisposable

    Constructors

    View Source

    ApplicationHost(IEnumerable<ServiceHost>)

    Initializes a new instance of the ApplicationHost class.

    Declaration
    public ApplicationHost(IEnumerable<ServiceHost> serviceHosts)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<ServiceHost> serviceHosts

    The service hosts.

    Methods

    View Source

    Dispose()

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

    Declaration
    public void Dispose()
    View Source

    Dispose(Boolean)

    Releases unmanaged and - optionally - managed resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    View Source

    RunAsync()

    Runs the application host.

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

    Implements

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