Class ServiceExtensions
- Namespace
- JobFlow.Core.Configuration
- Assembly
- JobFlow.Core.dll
public static class ServiceExtensions
- Inheritance
-
objectServiceExtensions
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
baseBuilderBaseJobFlowConfigurationBuilderlifetimeManagerLifetimeserviceTypeType
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
baseBuilderBaseJobFlowConfigurationBuilderlifetimeManagerLifetime
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
baseBuilderBaseJobFlowConfigurationBuilderserviceObjectTSvc
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
baseBuilderBaseJobFlowConfigurationBuilderlifetimeManagerLifetime
Type Parameters
TSvcTImpl
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
baseBuilderBaseJobFlowConfigurationBuilderlifetimeManagerLifetimeserviceTypeType
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
baseBuilderBaseJobFlowConfigurationBuilderlifetimeManagerLifetime
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
baseBuilderBaseJobFlowConfigurationBuilderserviceObjectTSvc
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
baseBuilderBaseJobFlowConfigurationBuilderlifetimeManagerLifetime
Type Parameters
TSvcTImpl