Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Class ServiceConfigurationContext

This class is used by the IConfigurableModule to expose the IoC container for configuration.

Inheritance
System.Object
ServiceConfigurationContext
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: 11.20.7
Syntax
public class ServiceConfigurationContext

Constructors

ServiceConfigurationContext(HostType, IServiceConfigurationProvider)

Creates an instance of the ServiceConfigurationContext class.

Declaration
public ServiceConfigurationContext(HostType hostType, IServiceConfigurationProvider services)
Parameters
Type Name Description
HostType hostType

Type of the host.

IServiceConfigurationProvider services

The IoC container to expose.

Properties

Container

Previous access to StructureMap now replaced with extension method StructureMap()

Declaration
[Obsolete("Access StructureMap using extension method StructureMap() available in NuGet package EPiServer.ServiceLocation.StructureMap", true)]
public object Container { get; }
Property Value
Type Description
System.Object

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 IServiceConfigurationProvider Services { get; }
Property Value
Type Description
IServiceConfigurationProvider

Events

ConfigurationComplete

ConfigurationComplete is raised when all ConfigureContainer(ServiceConfigurationContext) has been called.

Declaration
public event EventHandler<ServiceConfigurationEventArgs> ConfigurationComplete
Event Type
Type Description
System.EventHandler<ServiceConfigurationEventArgs>

Extension Methods