Class ServiceLocatorOptions
- Namespace
- Savvyio.Extensions.DependencyInjection
- Assembly
- Savvyio.Extensions.DependencyInjection.dll
Configuration options for IServiceLocator.
public class ServiceLocatorOptions : ServiceOptions, IParameterObject
- Inheritance
-
ServiceLocatorOptions
- Implements
- Inherited Members
Constructors
ServiceLocatorOptions()
Initializes a new instance of the ServiceLocatorOptions class.
public ServiceLocatorOptions()
Remarks
The following table shows the initial property values for an instance of ServiceLocatorOptions.
| Property | Initial Value |
|---|---|
| ImplementationFactory | p => new ServiceLocator(p.GetServices) |
Properties
ImplementationFactory
Gets or sets the function delegate that creates an instance of an IServiceLocator implementation.
public Func<IServiceProvider, IServiceLocator> ImplementationFactory { get; set; }
Property Value
- Func<IServiceProvider, IServiceLocator>
The function delegate that creates an instance of an IServiceLocator implementation.