Class JobFlowConfigurationBuilder
- Namespace
- JobFlow.Core.Configuration
- Assembly
- JobFlow.Core.dll
JobFlow configuration builder for the default Microsoft Dependency Injection framework.
public class JobFlowConfigurationBuilder : BaseJobFlowConfigurationBuilder
- Inheritance
-
JobFlowConfigurationBuilder
- Inherited Members
- Extension Methods
Remarks
Note: In the future, this class will likely go away or get merged into BaseJobFlowConfigurationBuilder. It's recommended you don't reference this class directly.
Constructors
JobFlowConfigurationBuilder(IServiceCollection)
public JobFlowConfigurationBuilder(IServiceCollection services)
Parameters
services
IServiceCollection
Properties
ApplicationConfiguration
public IConfiguration ApplicationConfiguration { get; set; }
Property Value
JobFlowConfiguration
public JobFlowConfiguration JobFlowConfiguration { get; set; }
Property Value
Services
public IServiceCollection Services { get; }
Property Value
Methods
AddService(ManagerLifetime, Type, Type)
Add a service to the configuration.
public override void AddService(ManagerLifetime lifetime, Type serviceType, Type implementationType)
Parameters
lifetime
ManagerLifetimeserviceType
TypeimplementationType
Type
AddService(Type, object)
Add an existing service instance to the configuration. The instance is added as a singleton.
public override void AddService(Type serviceType, object implementation)
Parameters
AddService<TSvc>(ManagerLifetime, Func<IServiceProvider, TSvc>)
Add a service that is created via an implementation factory method.
public override void AddService<TSvc>(ManagerLifetime lifetime, Func<IServiceProvider, TSvc> implementationMethod) where TSvc : class
Parameters
lifetime
ManagerLifetimeimplementationMethod
Func<IServiceProvider, TSvc>
Type Parameters
TSvc
TryAddService(ManagerLifetime, Type, Type)
Add a service to the configuration if the serviceType
hasn't already been registered.
public override void TryAddService(ManagerLifetime lifetime, Type serviceType, Type implementationType)
Parameters
lifetime
ManagerLifetimeserviceType
TypeimplementationType
Type
TryAddService(Type, object)
Add an existing service instance to the configuration, if the serviceType
hasn't already been registered.
The instance is added as a singleton.
public override void TryAddService(Type serviceType, object implementation)
Parameters
TryAddService<TSvc>(ManagerLifetime, Func<IServiceProvider, TSvc>)
Add a service that is created via an implementation factory method, if TSvc
hasn't already been registered.
public override void TryAddService<TSvc>(ManagerLifetime lifetime, Func<IServiceProvider, TSvc> implementationMethod) where TSvc : class
Parameters
lifetime
ManagerLifetimeimplementationMethod
Func<IServiceProvider, TSvc>
Type Parameters
TSvc