Show / Hide Table of Contents

    Class TransientProvider

    Provides an instance using the Type injected in the constructor and Activator to create a new instance every time.

    Inheritance
    Object
    TransientProvider
    Implements
    IProvider
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Core
    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
    Type Description
    Type

    _contractType

    Declaration
    protected readonly Type _contractType
    Field Value
    Type Description
    Type

    Properties

    ContractType

    Declaration
    public virtual Type ContractType { get; }
    Property Value
    Type Description
    Type

    WasCached

    Declaration
    public virtual bool WasCached { get; }
    Property Value
    Type Description
    Boolean

    Methods

    GetInstance()

    Declaration
    public virtual object GetInstance()
    Returns
    Type Description
    Object

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Implements

    IProvider
    Back to top Copyright © 2020 East Side Games Inc.