Class TransientProvider
Provides an instance using the Type injected in the constructor and Activator to
create a new instance every time.
Inheritance
TransientProvider
Assembly: cs.temp.dll.dll
Syntax
public class TransientProvider : IProvider
Constructors
TransientProvider(Type, Type)
Declaration
public TransientProvider(Type contractType, Type concreteType)
Parameters
Type |
Name |
Description |
Type |
contractType |
|
Type |
concreteType |
|
Fields
_concreteType
Declaration
protected readonly Type _concreteType
Field Value
_contractType
Declaration
protected readonly Type _contractType
Field Value
Properties
ContractType
Declaration
public virtual Type ContractType { get; }
Property Value
WasCached
Declaration
public virtual bool WasCached { get; }
Property Value
Methods
GetInstance()
Declaration
public virtual object GetInstance()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements