Show / Hide Table of Contents

    Class FabricHostBuilder<TFabricHostBuilder>

    Provides the abstract builder class for a FabricHost.

    Inheritance
    System.Object
    FabricHostBuilder<TFabricHostBuilder>
    FabricHostBuilder
    FabricHostBuilder
    FabricHostBuilder
    Namespace: Copper.Hosting
    Assembly: Copper.Hosting.dll
    Syntax
    public abstract class FabricHostBuilder<TFabricHostBuilder> : ComponentBuilder<FabricHost, TFabricHostBuilder> where TFabricHostBuilder : FabricHostBuilder<TFabricHostBuilder>
    Type Parameters
    Name Description
    TFabricHostBuilder

    Constructors

    View Source

    FabricHostBuilder()

    Initializes a new instance of the FabricHostBuilder class.

    Declaration
    protected FabricHostBuilder()

    Methods

    View Source

    AddApplication(String, String)

    Adds a named instance of the given application type to the fabric host.

    Declaration
    public TFabricHostBuilder AddApplication(string applicationName, string applicationTypeName)
    Parameters
    Type Name Description
    System.String applicationName

    The application name.

    System.String applicationTypeName

    The application type name.

    Returns
    Type Description
    TFabricHostBuilder

    The same instance of FabricHostBuilder<TFabricHostBuilder> for chaining.

    View Source

    AddApplicationType<TApplicationHostBuilder>(String, Func<ApplicationHostBuilder<TApplicationHostBuilder>>)

    Adds a named application type to the fabric host.

    Declaration
    public TFabricHostBuilder AddApplicationType<TApplicationHostBuilder>(string applicationTypeName, Func<ApplicationHostBuilder<TApplicationHostBuilder>> configureDelegate)
        where TApplicationHostBuilder : ApplicationHostBuilder<TApplicationHostBuilder>
    Parameters
    Type Name Description
    System.String applicationTypeName

    The application type name.

    System.Func<ApplicationHostBuilder<TApplicationHostBuilder>> configureDelegate

    A factory method to create application host objects.

    Returns
    Type Description
    TFabricHostBuilder

    The same instance of FabricHostBuilder<TFabricHostBuilder> for chaining.

    Type Parameters
    Name Description
    TApplicationHostBuilder

    The application host builder type.

    • View Source
    In This Article
    • Constructors
      • FabricHostBuilder()
    • Methods
      • AddApplication(String, String)
      • AddApplicationType<TApplicationHostBuilder>(String, Func<ApplicationHostBuilder<TApplicationHostBuilder>>)
    Back to top Generated by DocFX