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