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()
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
Returns
Add(Type, Object)
Declaration
public IRegisteredService Add(Type serviceType, object instance)
Parameters
Type |
Name |
Description |
System.Type |
serviceType |
|
System.Object |
instance |
|
Returns
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
AddServiceAccessor()
Declaration
public IServiceConfigurationProvider AddServiceAccessor()
Returns
Declaration
public void Configure(Action<ConfigurationBuilder> expression)
Parameters
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
GetInstance<T>()
Declaration
public T GetInstance<T>()
Returns
Type Parameters
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
RemoveAll(Type)
Declaration
public IServiceConfigurationProvider RemoveAll(Type serviceType)
Parameters
Type |
Name |
Description |
System.Type |
serviceType |
|
Returns
TryGetInstance<T>()
Declaration
public T TryGetInstance<T>()
Returns
Type Parameters
Implements
Extension Methods