Class ServiceLocatorFactoryAttribute
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version.
Used to automatically detrmine a IOC container if no is explicitly registered with Initialization
Inheritance
Namespace: EPiServer.ServiceLocation.AutoDiscovery
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public sealed class ServiceLocatorFactoryAttribute : Attribute
Remarks
In case several attributes is detected it will will use the type from the first Service
Constructors
ServiceLocatorFactoryAttribute(Type)
Initializes a new instance of the Service
Declaration
public ServiceLocatorFactoryAttribute(Type serviceLocatorFactoryType)
Parameters
Type | Name | Description |
---|---|---|
System. |
serviceLocatorFactoryType | Type that should be created. Must implement IService |
Exceptions
Type | Condition |
---|---|
System. |
serviceLocatorFactoryType |
System. |
Type must implement IServiceLocatorFactory interface;serviceLocatorFactoryType |
Properties
ServiceLocatorFactoryType
Gets the type of IService
Declaration
public Type ServiceLocatorFactoryType { get; }
Property Value
Type | Description |
---|---|
System. |