Class MicroserviceBuilder<TMicroserviceBuilder>
Provides the abstract builder class for an ApplicationHost for a Microservice.
Inheritance
Namespace: Copper.Conventions.Method.Hosting.V1
Assembly: Copper.Conventions.Method.Hosting.dll
Syntax
public abstract class MicroserviceBuilder<TMicroserviceBuilder> : ApplicationHostBuilder<TMicroserviceBuilder> where TMicroserviceBuilder : MicroserviceBuilder<TMicroserviceBuilder>
Type Parameters
Name | Description |
---|---|
TMicroserviceBuilder | The Microservice builder type. |
Methods
View SourceAddAccess<TAccessImplementation>()
Adds an instance of the given Access type to the application host.
Declaration
public TMicroserviceBuilder AddAccess<TAccessImplementation>()
where TAccessImplementation : class
Returns
Type | Description |
---|---|
TMicroserviceBuilder |
Type Parameters
Name | Description |
---|---|
TAccessImplementation | The Access implementation type. |
AddAccessType<TAccessImplementation>(Func<AccessBuilder>)
Adds an Access service type to the application host.
Declaration
public TMicroserviceBuilder AddAccessType<TAccessImplementation>(Func<AccessBuilder> configureDelegate)
where TAccessImplementation : class
Parameters
Type | Name | Description |
---|---|---|
System.Func<AccessBuilder> | configureDelegate | A factory method to create Access host objects. |
Returns
Type | Description |
---|---|
TMicroserviceBuilder |
Type Parameters
Name | Description |
---|---|
TAccessImplementation | The Access implementation type. |
AddEngine<TEngineImplementation>()
Adds an instance of the given Engine type to the application host.
Declaration
public TMicroserviceBuilder AddEngine<TEngineImplementation>()
where TEngineImplementation : class
Returns
Type | Description |
---|---|
TMicroserviceBuilder |
Type Parameters
Name | Description |
---|---|
TEngineImplementation | The Engine implementation type. |
AddEngineType<TEngineImplementation>(Func<EngineBuilder>)
Adds an Engine service type to the application host.
Declaration
public TMicroserviceBuilder AddEngineType<TEngineImplementation>(Func<EngineBuilder> configureDelegate)
where TEngineImplementation : class
Parameters
Type | Name | Description |
---|---|---|
System.Func<EngineBuilder> | configureDelegate | A factory method to create Engine host objects. |
Returns
Type | Description |
---|---|
TMicroserviceBuilder |
Type Parameters
Name | Description |
---|---|
TEngineImplementation | The Engine implementation type. |
AddManager<TManagerImplementation>()
Adds an instance of the given Manager type to the application host.
Declaration
public TMicroserviceBuilder AddManager<TManagerImplementation>()
where TManagerImplementation : class
Returns
Type | Description |
---|---|
TMicroserviceBuilder |
Type Parameters
Name | Description |
---|---|
TManagerImplementation | The Manager implementation type. |
AddManagerType<TManagerImplementation>(Func<ManagerBuilder>)
Adds a Manager service type to the application host.
Declaration
public TMicroserviceBuilder AddManagerType<TManagerImplementation>(Func<ManagerBuilder> configureDelegate)
where TManagerImplementation : class
Parameters
Type | Name | Description |
---|---|---|
System.Func<ManagerBuilder> | configureDelegate | A factory method to create Manager host objects. |
Returns
Type | Description |
---|---|
TMicroserviceBuilder |
Type Parameters
Name | Description |
---|---|
TManagerImplementation | The Manager implementation type. |