Class ServiceConfigurationContext
This class is used by the IConfigurableModule to expose the IoC container for configuration.
Inheritance
System.Object
    ServiceConfigurationContext
  Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public class ServiceConfigurationContext : ObjectConstructors
ServiceConfigurationContext(HostType, IServiceCollection)
Creates an instance of the ServiceConfigurationContext class.
Declaration
public ServiceConfigurationContext(HostType hostType, IServiceCollection services)Parameters
| Type | Name | Description | 
|---|---|---|
| HostType | hostType | Type of the host. | 
| Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The service collection. | 
Properties
HostType
Gets the type of the host.
Declaration
public HostType HostType { get; }Property Value
| Type | Description | 
|---|---|
| HostType | 
Services
Provider for the registered inversion of control container. Use this property to configure services into the container.
Declaration
public IServiceCollection Services { get; }Property Value
| Type | Description | 
|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection | 
Events
ConfigurationComplete
ConfigurationComplete is raised when all ConfigureContainer(ServiceConfigurationContext) has been called.
Declaration
public event EventHandler<ServiceConfigurationEventArgs> ConfigurationCompleteEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ServiceConfigurationEventArgs> | 
