Class FabricHostBuilder<TFabricHostBuilder>
Provides the abstract builder class for a FabricHost.
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 SourceFabricHostBuilder()
Initializes a new instance of the FabricHostBuilder class.
Declaration
protected FabricHostBuilder()
Methods
View SourceAddApplication(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. |
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. |