Table of Contents

Class BaseJobFlowConfigurationBuilder

Namespace
JobFlow.Core.Configuration
Assembly
JobFlow.Core.dll

Configuration builder for JobFlow.

public abstract class BaseJobFlowConfigurationBuilder
Inheritance
BaseJobFlowConfigurationBuilder
Derived
Extension Methods

Remarks

See JobFlowConfigurationBuilderExtensions for methods used to configure pieces of JobFlow.

Properties

TypeScanner

Class designed to facilitate easily processing custom attributes on types during the configuration process.

public ITypeScanner TypeScanner { get; }

Property Value

ITypeScanner

Methods

AddService(ManagerLifetime, Type, Type)

Add a service to the configuration.

public abstract void AddService(ManagerLifetime lifetime, Type serviceType, Type implementationType)

Parameters

lifetime ManagerLifetime
serviceType Type
implementationType Type

AddService(Type, object)

Add an existing service instance to the configuration. The instance is added as a singleton.

public abstract void AddService(Type serviceType, object implementation)

Parameters

serviceType Type
implementation object

AddService<TSvc>(ManagerLifetime, Func<IServiceProvider, TSvc>)

Add a service that is created via an implementation factory method.

public abstract void AddService<TSvc>(ManagerLifetime lifetime, Func<IServiceProvider, TSvc> implementationFactory) where TSvc : class

Parameters

lifetime ManagerLifetime
implementationFactory 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 abstract void TryAddService(ManagerLifetime lifetime, Type serviceType, Type implementationType)

Parameters

lifetime ManagerLifetime
serviceType Type
implementationType 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 abstract void TryAddService(Type serviceType, object implementation)

Parameters

serviceType Type
implementation object

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 abstract void TryAddService<TSvc>(ManagerLifetime lifetime, Func<IServiceProvider, TSvc> implementationFactory) where TSvc : class

Parameters

lifetime ManagerLifetime
implementationFactory Func<IServiceProvider, TSvc>

Type Parameters

TSvc