Interface IServiceConfiguration

When implemented by an attribute, this interface controls how the decorated class is registered in the inversion of control container.

Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
public interface IServiceConfiguration

Properties

FactoryMember

Gets the name of a static property on the attributed class from which the service instance is retrieved.

Declaration
string FactoryMember { get; }
Property Value
Type Description
System.String

FactoryType

Gets the name of a type that is responsible for creating instances of the attributed service.

Declaration
Type FactoryType { get; }
Property Value
Type Description
System.Type

Lifecycle

Gets the scope of instances of the attributed class, i.e. when to reuse instances of the same service.

Declaration
ServiceInstanceScope Lifecycle { get; }
Property Value
Type Description
ServiceInstanceScope

ServiceType

Gets the type of service the decorated class represents. If null the class is registered with it's own type as service type.

Declaration
Type ServiceType { get; }
Property Value
Type Description
System.Type

Extension Methods