Class LifetimeBase

Represents the contract of service lifetime descriptors.

Inheritance
System.Object
LifetimeBase
Lifetime
Implements
System.IComparable<LifetimeBase>
Namespace: Solti.Utils.DI.Interfaces
Assembly: Solti.Utils.DI.Interfaces.dll
Syntax
public abstract class LifetimeBase : Object

Constructors

LifetimeBase()

Declaration
protected LifetimeBase()

Methods

CompareTo(LifetimeBase)

See System.IComparable`1.CompareTo(`0)

Declaration
public abstract int CompareTo(LifetimeBase other)
Parameters
Type Name Description
LifetimeBase other
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
Type Description
System.Collections.Generic.IEnumerable<AbstractServiceEntry>

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
Type Description
System.Collections.Generic.IEnumerable<AbstractServiceEntry>

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
Type Description
System.Collections.Generic.IEnumerable<AbstractServiceEntry>

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
Type Description
System.Collections.Generic.IEnumerable<AbstractServiceEntry>

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
Type Description
LifetimeBase

Implements

System.IComparable<>
In This Article
Back to top Generated by DocFX