Class ServiceCollectionExtensions
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
- Inherited Members
Methods
AddDcrRuntime(IServiceCollection, Action<IRuntimeBuilder>?, ServiceLifetime)
Add DCR Runtime
public static IServiceCollection AddDcrRuntime(this IServiceCollection services, Action<IRuntimeBuilder>? configure = null, ServiceLifetime lifetime = ServiceLifetime.Singleton)
Parameters
services
IServiceCollectionconfigure
Action<IRuntimeBuilder>lifetime
ServiceLifetime
Returns
Remarks
The added middleware will not be configured with anything, and you must add whatever you need in Configure. See also AddDefaultDcrRuntime(IServiceCollection), which is more likely to be what you need.
AddDcrRuntimeForWorkZone(IServiceCollection)
Add DCR middleware suited for KMD WorkZone installations
public static IServiceCollection AddDcrRuntimeForWorkZone(this IServiceCollection services)
Parameters
services
IServiceCollection
Returns
Remarks
This is the default middleware with the addition of WorkZone effects.
AddDcrRuntimeForWorkZone(IServiceCollection, IConfiguration)
[Obsolete("Use AddDcrRuntimeForWorkZone(this IServiceCollection services) instead")]
public static IServiceCollection AddDcrRuntimeForWorkZone(this IServiceCollection services, IConfiguration config)
Parameters
services
IServiceCollectionconfig
IConfiguration
Returns
AddDcrScheduler<TCaseStore>(IServiceCollection)
public static IServiceCollection AddDcrScheduler<TCaseStore>(this IServiceCollection services) where TCaseStore : class, ISchedulerContextService
Parameters
services
IServiceCollection
Returns
Type Parameters
TCaseStore
AddDefaultDcrRuntime(IServiceCollection)
Add default DCR middleware
public static IServiceCollection AddDefaultDcrRuntime(this IServiceCollection services)
Parameters
services
IServiceCollection
Returns
Remarks
This is likely what you need. See AddDefault(IRuntimeBuilder) to see what the default middleware configures.