World is now on Opti ID! Learn more

Class StructureMapConfiguration

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Inheritance
System.Object
StructureMapConfiguration
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.Internal
Assembly: EPiServer.Framework.dll
Version: 10.10.4
Syntax
public class StructureMapConfiguration : IRegisteredService, IServiceConfigurationProvider, IInterceptorRegister

Constructors

StructureMapConfiguration(IContainer)

Declaration
public StructureMapConfiguration(IContainer container)
Parameters
Type Name Description
StructureMap.IContainer container

Properties

Container

Declaration
public IContainer Container { get; }
Property Value
Type Description
StructureMap.IContainer

Methods

Add(Type, Func<IServiceLocator, Object>, ServiceInstanceScope)

Declaration
public IRegisteredService Add(Type serviceType, Func<IServiceLocator, object> implementationFactory, ServiceInstanceScope lifetime)
Parameters
Type Name Description
System.Type serviceType
System.Func<IServiceLocator, System.Object> implementationFactory
ServiceInstanceScope lifetime
Returns
Type Description
IRegisteredService

Add(Type, Object)

Declaration
public IRegisteredService Add(Type serviceType, object instance)
Parameters
Type Name Description
System.Type serviceType
System.Object instance
Returns
Type Description
IRegisteredService

Add(Type, Type, ServiceInstanceScope)

Declaration
public IRegisteredService Add(Type serviceType, Type implementationType, ServiceInstanceScope lifetime)
Parameters
Type Name Description
System.Type serviceType
System.Type implementationType
ServiceInstanceScope lifetime
Returns
Type Description
IRegisteredService

AddServiceAccessor()

Declaration
public IServiceConfigurationProvider AddServiceAccessor()
Returns
Type Description
IServiceConfigurationProvider

Configure(Action<ConfigurationBuilder>)

Declaration
public void Configure(Action<ConfigurationBuilder> expression)
Parameters
Type Name Description
System.Action<ConfigurationBuilder> expression

Contains(Type)

Declaration
public bool Contains(Type serviceType)
Parameters
Type Name Description
System.Type serviceType
Returns
Type Description
System.Boolean

GetAllInstances<T>()

Declaration
public IEnumerable<T> GetAllInstances<T>()
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Type Parameters
Name Description
T

GetInstance<T>()

Declaration
public T GetInstance<T>()
Returns
Type Description
T
Type Parameters
Name Description
T

Intercept<T>(Func<IServiceLocator, T, T>)

Declaration
public void Intercept<T>(Func<IServiceLocator, T, T> interceptorFactory)
    where T : class
Parameters
Type Name Description
System.Func<IServiceLocator, T, T> interceptorFactory
Type Parameters
Name Description
T

RemoveAll(Type)

Declaration
public IServiceConfigurationProvider RemoveAll(Type serviceType)
Parameters
Type Name Description
System.Type serviceType
Returns
Type Description
IServiceConfigurationProvider

TryGetInstance<T>()

Declaration
public T TryGetInstance<T>()
Returns
Type Description
T
Type Parameters
Name Description
T

Implements

Extension Methods