Class WorkerHostApplicationBuilderExtensions
Namespace: Cephalon.Worker.Hosting
Assembly: Cephalon.Worker.dll
Registers the Cephalon worker host adapter on a
public static class WorkerHostApplicationBuilderExtensionsInheritance
Section titled “Inheritance”object ← WorkerHostApplicationBuilderExtensions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”AddCephalon(HostApplicationBuilder)
Section titled “ AddCephalon(HostApplicationBuilder)”Adds Cephalon worker hosting using configuration-only engine setup.
public static HostApplicationBuilder AddCephalon(this HostApplicationBuilder builder)Parameters
Section titled “Parameters”builder HostApplicationBuilder
The generic host application builder to extend.
Returns
Section titled “Returns”The same builder instance for fluent composition.
AddCephalon(HostApplicationBuilder, Action<EngineBuilder>)
Section titled “ AddCephalon(HostApplicationBuilder, Action<EngineBuilder>)”Adds Cephalon worker hosting and allows additional code-based engine configuration.
public static HostApplicationBuilder AddCephalon(this HostApplicationBuilder builder, Action<EngineBuilder> configure)Parameters
Section titled “Parameters”builder HostApplicationBuilder
The generic host application builder to extend.
configure Action<EngineBuilder>
The callback that configures the underlying engine builder.
Returns
Section titled “Returns”The same builder instance for fluent composition.
AddCephalonProjectConfigurations(HostApplicationBuilder)
Section titled “ AddCephalonProjectConfigurations(HostApplicationBuilder)”Adds Cephalon’s project-configuration conventions to the generic host builder.
public static HostApplicationBuilder AddCephalonProjectConfigurations(this HostApplicationBuilder builder)Parameters
Section titled “Parameters”builder HostApplicationBuilder
The generic host application builder to extend.
Returns
Section titled “Returns”The same builder instance for fluent composition.
Remarks
Section titled “Remarks”This loads split configuration files from the project’s Configurations folder so
engine and host-specific settings can be grouped by concern while preserving the standard
appsettings.json and appsettings.{Environment}.json override path.