Skip to content

Class EngineServiceCollectionExtensions

Namespace: Cephalon.Engine.Composition
Assembly: Cephalon.Engine.dll

Adds the Cephalon runtime and its supporting services to an .

public static class EngineServiceCollectionExtensions

objectEngineServiceCollectionExtensions

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

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

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

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

public static IServiceCollection AddCephalon(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.

AddCephalon(IServiceCollection, Action<EngineBuilder>)

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

Adds Cephalon using code-first configuration.

public static IServiceCollection AddCephalon(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.