Table of Contents

Class ServiceExtensions

Namespace
JobFlow.Core.Configuration
Assembly
JobFlow.Core.dll
public static class ServiceExtensions
Inheritance
ServiceExtensions

Methods

AddService(BaseJobFlowConfigurationBuilder, ManagerLifetime, Type)

Add a service to the configuration where the implementation type is the same as the service type.

public static void AddService(this BaseJobFlowConfigurationBuilder baseBuilder, ManagerLifetime lifetime, Type serviceType)

Parameters

baseBuilder BaseJobFlowConfigurationBuilder
lifetime ManagerLifetime
serviceType Type

AddService<TSvc>(BaseJobFlowConfigurationBuilder, ManagerLifetime)

Add a service to the configuration where the implementation type is the same as the service type.

public static void AddService<TSvc>(this BaseJobFlowConfigurationBuilder baseBuilder, ManagerLifetime lifetime)

Parameters

baseBuilder BaseJobFlowConfigurationBuilder
lifetime ManagerLifetime

Type Parameters

TSvc

AddService<TSvc>(BaseJobFlowConfigurationBuilder, TSvc)

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

public static void AddService<TSvc>(this BaseJobFlowConfigurationBuilder baseBuilder, TSvc serviceObject)

Parameters

baseBuilder BaseJobFlowConfigurationBuilder
serviceObject TSvc

Type Parameters

TSvc

AddService<TSvc, TImpl>(BaseJobFlowConfigurationBuilder, ManagerLifetime)

Add a service to the configuration.

public static void AddService<TSvc, TImpl>(this BaseJobFlowConfigurationBuilder baseBuilder, ManagerLifetime lifetime) where TImpl : TSvc

Parameters

baseBuilder BaseJobFlowConfigurationBuilder
lifetime ManagerLifetime

Type Parameters

TSvc
TImpl

TryAddService(BaseJobFlowConfigurationBuilder, ManagerLifetime, Type)

Add a service to the configuration where the implementation type is the same as the service type.

public static void TryAddService(this BaseJobFlowConfigurationBuilder baseBuilder, ManagerLifetime lifetime, Type serviceType)

Parameters

baseBuilder BaseJobFlowConfigurationBuilder
lifetime ManagerLifetime
serviceType Type

TryAddService<TSvc>(BaseJobFlowConfigurationBuilder, ManagerLifetime)

Add a service to the configuration where the implementation type is the same as the service type.

public static void TryAddService<TSvc>(this BaseJobFlowConfigurationBuilder baseBuilder, ManagerLifetime lifetime)

Parameters

baseBuilder BaseJobFlowConfigurationBuilder
lifetime ManagerLifetime

Type Parameters

TSvc

TryAddService<TSvc>(BaseJobFlowConfigurationBuilder, TSvc)

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

public static void TryAddService<TSvc>(this BaseJobFlowConfigurationBuilder baseBuilder, TSvc serviceObject)

Parameters

baseBuilder BaseJobFlowConfigurationBuilder
serviceObject TSvc

Type Parameters

TSvc

TryAddService<TSvc, TImpl>(BaseJobFlowConfigurationBuilder, ManagerLifetime)

Add a service to the configuration.

public static void TryAddService<TSvc, TImpl>(this BaseJobFlowConfigurationBuilder baseBuilder, ManagerLifetime lifetime) where TImpl : TSvc

Parameters

baseBuilder BaseJobFlowConfigurationBuilder
lifetime ManagerLifetime

Type Parameters

TSvc
TImpl