Class LifetimeBase
Represents the contract of service lifetime descriptors.
Inheritance
System.Object
LifetimeBase
Assembly: Solti.Utils.DI.Interfaces.dll
Syntax
public abstract class LifetimeBase : Object
Constructors
LifetimeBase()
Declaration
Methods
CompareTo(LifetimeBase)
See System.IComparable`1.CompareTo(`0)
Declaration
public abstract int CompareTo(LifetimeBase other)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|
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
| Type |
Name |
Description |
| System.Type |
type |
|
| System.Object |
key |
|
| System.Linq.Expressions.Expression<FactoryDelegate> |
factory |
|
| ServiceOptions |
serviceOptions |
|
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
| Type |
Name |
Description |
| System.Type |
type |
|
| System.Object |
key |
|
| System.Object |
value |
|
| ServiceOptions |
serviceOptions |
|
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
| Type |
Name |
Description |
| System.Type |
type |
|
| System.Object |
key |
|
| System.Type |
implementation |
|
| ServiceOptions |
serviceOptions |
|
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
| Type |
Name |
Description |
| System.Type |
type |
|
| System.Object |
key |
|
| System.Type |
implementation |
|
| System.Object |
explicitArgs |
|
| ServiceOptions |
serviceOptions |
|
Returns
Using(Object)
Creates a copy from this instance using the given configuration.
Declaration
public virtual LifetimeBase Using(object configuration)
Parameters
| Type |
Name |
Description |
| System.Object |
configuration |
|
Returns
Implements
System.IComparable<>