Class ConfigurationBuilder
Used to define the service type that is configured
Inheritance
System.Object
ConfigurationBuilder
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.4Syntax
public abstract class ConfigurationBuilder
Constructors
ConfigurationBuilder()
Declaration
protected ConfigurationBuilder()
Methods
For(Type)
Specifies which service type to configure
Declaration
public abstract ConfiguredType For(Type serviceType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | serviceType | The service type |
Returns
| Type | Description |
|---|---|
| ConfiguredType | A configurable instance for the service |
For<T>()
Specifies which service type to configure
Declaration
public abstract ConfiguredType<T> For<T>()
Returns
| Type | Description |
|---|---|
| ConfiguredType<T> | A configurable instance for the service |
Type Parameters
| Name | Description |
|---|---|
| T | The service type |
Forward<T1, T2>()
Forwards an existing registration for service T1 to T2
Declaration
public abstract void Forward<T1, T2>()
where T1 : class where T2 : class
Type Parameters
| Name | Description |
|---|---|
| T1 | The existing service |
| T2 | The added service |