Table of Contents

Class StartupSysCore

Namespace
ToSic.Sys.Run.Startup
Assembly
ToSic.Sys.Core.dll

Startup registration for all of ToSic.Sys.Core. This is the innermost foundation of services.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public static class StartupSysCore
Inheritance
object
StartupSysCore

Methods

AddSysCore(IServiceCollection, bool)

Add all SysCore services

public static IServiceCollection AddSysCore(this IServiceCollection services, bool useMel = false)

Parameters

services IServiceCollection

The service collection to which the wrapper services will be added. Cannot be null.

useMel bool

Selects MEL logging with Insights instead of the default Legacy stack.

Returns

IServiceCollection

The same IServiceCollection instance, enabling method chaining.

Remarks

Call this method during application startup to ensure wrapper dependencies are available for injection.

AddSysCoreBoot(IServiceCollection)

Add core boot and configuration services

public static IServiceCollection AddSysCoreBoot(this IServiceCollection services)

Parameters

services IServiceCollection

Returns

IServiceCollection

AddSysCoreDi(IServiceCollection)

Add core Dependency Injection prats, such as Lazy, Generator, etc.

public static IServiceCollection AddSysCoreDi(this IServiceCollection services)

Parameters

services IServiceCollection

Returns

IServiceCollection

AddSysCoreDiServiceSwitchers(IServiceCollection)

Add Service Switchers

public static IServiceCollection AddSysCoreDiServiceSwitchers(this IServiceCollection services)

Parameters

services IServiceCollection

Returns

IServiceCollection

AddSysCoreInsightsLogger(ILoggingBuilder)

public static ILoggingBuilder AddSysCoreInsightsLogger(this ILoggingBuilder logging)

Parameters

logging ILoggingBuilder

Returns

ILoggingBuilder

AddSysCoreLegacyLogging(IServiceCollection)

public static IServiceCollection AddSysCoreLegacyLogging(this IServiceCollection services)

Parameters

services IServiceCollection

Returns

IServiceCollection

AddSysCoreLogging(IServiceCollection, bool)

Registers one complete logging stack. Call once at startup; changing stacks requires an application restart. Factory, store and reader use the same selection so Insights cannot resolve a mixed stack.

public static IServiceCollection AddSysCoreLogging(this IServiceCollection services, bool useMel = false)

Parameters

services IServiceCollection
useMel bool

Returns

IServiceCollection

AddSysCoreMelInsightsLogging(IServiceCollection)

public static IServiceCollection AddSysCoreMelInsightsLogging(this IServiceCollection services)

Parameters

services IServiceCollection

Returns

IServiceCollection

AddSysCoreMelLogging(IServiceCollection)

public static IServiceCollection AddSysCoreMelLogging(this IServiceCollection services)

Parameters

services IServiceCollection

Returns

IServiceCollection