ข้ามไปยังเนื้อหา

Class WorkerServiceCollectionExtensions

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Worker.Hosting
Assembly: Cephalon.Worker.dll

Adds the Cephalon worker adapter and runtime services to an .

public static class WorkerServiceCollectionExtensions

objectWorkerServiceCollectionExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

AddCephalonWorker(IServiceCollection, IConfiguration, Action<EngineBuilder>?, string)

Section titled “ AddCephalonWorker(IServiceCollection, IConfiguration, Action<EngineBuilder>?, string)”

Adds Cephalon worker hosting using configuration as the primary source of engine settings.

public static IServiceCollection AddCephalonWorker(this IServiceCollection services, IConfiguration configuration, Action<EngineBuilder>? configure = null, string sectionPath = "Engine")

services IServiceCollection

The target service collection.

configuration IConfiguration

The application configuration root.

configure Action<EngineBuilder>?

An optional callback that can extend or override the configuration-driven engine setup.

sectionPath string

The configuration section path that contains the engine settings. The default is Engine.

IServiceCollection

The same service collection for further registration.

AddCephalonWorker(IServiceCollection, Action<EngineBuilder>)

Section titled “ AddCephalonWorker(IServiceCollection, Action<EngineBuilder>)”

Adds Cephalon worker hosting using code-first engine configuration.

public static IServiceCollection AddCephalonWorker(this IServiceCollection services, Action<EngineBuilder> configure)

services IServiceCollection

The target service collection.

configure Action<EngineBuilder>

The callback that configures the engine builder.

IServiceCollection

The same service collection for further registration.