Class SavvyioDependencyInjectionOptions
- Namespace
- Savvyio.Extensions.DependencyInjection
- Assembly
- Savvyio.Extensions.DependencyInjection.dll
Specifies options that is related to setting up Savvy I/O services.
public class SavvyioDependencyInjectionOptions : SavvyioOptions, IParameterObject
- Inheritance
-
SavvyioDependencyInjectionOptions
- Implements
- Inherited Members
- Extension Methods
Constructors
SavvyioDependencyInjectionOptions()
Initializes a new instance of the SavvyioDependencyInjectionOptions class.
public SavvyioDependencyInjectionOptions()
Remarks
The following table shows the initial property values for an instance of SavvyioOptions.
| Property | Initial Value |
|---|---|
| AllowDispatcherDiscovery | false |
| AllowHandlerDiscovery | false |
| IncludeHandlerServicesDescriptor | false |
| ServiceLocatorLifetime | Transient |
| ServiceLocatorImplementationFactory | p => new ServiceLocator(p.GetServices) |
| DispatcherServicesLifetime | Transient |
| HandlerServicesLifetime | Transient |
| AssembliesToScan | null |
Properties
AssembliesToScan
Gets the assemblies to scan for dispatcher- and handler- types.
public IEnumerable<Assembly> AssembliesToScan { get; }
Property Value
- IEnumerable<Assembly>
The assemblies to scan for dispatcher- and handler- types.
DispatcherServicesLifetime
Gets or sets the lifetime of the dispatcher services.
public ServiceLifetime DispatcherServicesLifetime { get; set; }
Property Value
- ServiceLifetime
The lifetime of the dispatcher services.
HandlerServicesLifetime
Gets or sets the lifetime of the handler services.
public ServiceLifetime HandlerServicesLifetime { get; set; }
Property Value
- ServiceLifetime
The lifetime of the handler services.
ServiceLocatorImplementationFactory
Gets or sets the function delegate that creates an instance of an IServiceLocator implementation.
public Func<IServiceProvider, IServiceLocator> ServiceLocatorImplementationFactory { get; set; }
Property Value
- Func<IServiceProvider, IServiceLocator>
The function delegate that creates an instance of an IServiceLocator implementation.
ServiceLocatorLifetime
Gets or sets the lifetime of the IServiceLocator.
public ServiceLifetime ServiceLocatorLifetime { get; set; }
Property Value
- ServiceLifetime
The lifetime of the IServiceLocator.
Methods
AddAssemblyRangeToScan(params Assembly[])
Adds the specified range of assemblies to be included when scanning for dispatcher- and handler- types.
public SavvyioDependencyInjectionOptions AddAssemblyRangeToScan(params Assembly[] assemblies)
Parameters
assembliesAssembly[]The assemblies to include in the scan.
Returns
- SavvyioDependencyInjectionOptions
A reference to this instance so that additional configuration calls can be chained.
AddAssemblyToScan(Assembly)
Adds the specified assembly to be included when scanning for dispatcher- and handler- types.
public SavvyioDependencyInjectionOptions AddAssemblyToScan(Assembly assembly)
Parameters
assemblyAssemblyThe assembly to include in the scan.
Returns
- SavvyioDependencyInjectionOptions
A reference to this instance so that additional configuration calls can be chained.