Class LifetimeBase
Represents the contract of service lifetime descriptors.
Assembly: Solti.Utils.DI.Interfaces.dll
Syntax
public abstract class LifetimeBase : Object
Constructors
LifetimeBase()
Declaration
Methods
CompareTo(LifetimeBase)
Declaration
public abstract int CompareTo(LifetimeBase other)
Parameters
Returns
CreateFrom(Type, Object, Expression<FactoryDelegate>, ServiceOptions)
Creates one or more service entry against the given factory
.
Declaration
public virtual IEnumerable<AbstractServiceEntry> CreateFrom(Type type, object key, Expression<FactoryDelegate> factory, ServiceOptions serviceOptions)
Parameters
Returns
CreateFrom(Type, Object, Object, ServiceOptions)
Creates one or more service entry against the given value
.
Declaration
public virtual IEnumerable<AbstractServiceEntry> CreateFrom(Type type, object key, object value, ServiceOptions serviceOptions)
Parameters
Returns
CreateFrom(Type, Object, Type, ServiceOptions)
Creates one or more service entry against the given implementation
.
Declaration
public virtual IEnumerable<AbstractServiceEntry> CreateFrom(Type type, object key, Type implementation, ServiceOptions serviceOptions)
Parameters
Returns
CreateFrom(Type, Object, Type, Object, ServiceOptions)
Creates one or more service entry against the given implementation
using arbitrary constructor arguments.
Declaration
public virtual IEnumerable<AbstractServiceEntry> CreateFrom(Type type, object key, Type implementation, object explicitArgs, ServiceOptions serviceOptions)
Parameters
Returns
Using(Object)
Creates a copy from this instance using the given configuration
.
Declaration
public virtual LifetimeBase Using(object configuration)
Parameters
Type |
Name |
Description |
Object |
configuration |
|
Returns
Implements