November Happy Hour will be moved to Thursday December 5th.

Class ConfiguredType

Represents a configured service

Inheritance
System.Object
ConfiguredType
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.Compatibility
Assembly: EPiServer.Framework.dll
Version: 10.10.4
Syntax
public abstract class ConfiguredType

Constructors

ConfiguredType()

Declaration
protected ConfiguredType()

Methods

Add(Type)

Adds an implementation type for the service.

Declaration
public abstract void Add(Type type)
Parameters
Type Name Description
System.Type type

The implementation type

LifecycleIs(ServiceInstanceScope)

Specifies which lifecyscle the service should have

Declaration
public abstract ConfiguredType LifecycleIs(ServiceInstanceScope lifecycle)
Parameters
Type Name Description
ServiceInstanceScope lifecycle

The lifecycle to set

Returns
Type Description
ConfiguredType

The configured service

Singleton()

Specifies that the service should be singleton

Declaration
public abstract ConfiguredType Singleton()
Returns
Type Description
ConfiguredType

The configured service

Use(Func<IServiceLocator, Object>)

Specifies an implementation factory for the service.

Declaration
public abstract void Use(Func<IServiceLocator, object> p)
Parameters
Type Name Description
System.Func<IServiceLocator, System.Object> p

The implementation type factory

Use(Type)

Specifies an implementation type for the service.

Declaration
public abstract void Use(Type type)
Parameters
Type Name Description
System.Type type

The implementation type

Extension Methods