Class ServiceContainerInitialization
Initializes the IoC container. To use ServiceLocator in an initializable module add ModuleDependencyAttribute from your initializable module to ServiceContainerInitialization.
Inheritance
System.Object
ServiceContainerInitialization
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Framework.dll
Version: 8.11.0Syntax
[InitializableModule]
public class ServiceContainerInitialization : IConfigurableModule, IInitializableModule
Constructors
ServiceContainerInitialization()
Declaration
public ServiceContainerInitialization()
ServiceContainerInitialization(ITypeScannerLookup)
Declaration
public ServiceContainerInitialization(ITypeScannerLookup repo)
Parameters
Type | Name | Description |
---|---|---|
ITypeScannerLookup | repo |
Methods
ConfigureContainer(ServiceConfigurationContext)
Configures the container with default services.
Declaration
public void ConfigureContainer(ServiceConfigurationContext context)
Parameters
Type | Name | Description |
---|---|---|
ServiceConfigurationContext | context | The context to configure. |
Initialize(InitializationEngine)
Sets global service locator.
Declaration
public void Initialize(InitializationEngine context)
Parameters
Type | Name | Description |
---|---|---|
InitializationEngine | context | The context to use. |
Uninitialize(InitializationEngine)
Resets the global service locator.
Declaration
public void Uninitialize(InitializationEngine context)
Parameters
Type | Name | Description |
---|---|---|
InitializationEngine | context | The context to use. |