Show / Hide Table of Contents

    Class BindingService

    An abstract class that has consolidated Bind<TContract>() and Unbind<TContract>() logic specific to IdleKit. When an object with an id is bound or unbound in IdleKit, bindings associated with all the object's parent classes and interfaces (except IInjectable and Object) using the same id would also be created.

    Inheritance
    Object
    ServiceBase
    BindingService
    DataService
    Implements
    IService
    IInjectable
    Inherited Members
    ServiceBase.OnInitialized
    ServiceBase._isInitialized
    ServiceBase.IsInitialized
    ServiceBase._unityEventListener
    ServiceBase.Initialize()
    ServiceBase.InitializeService()
    ServiceBase.CleanupService()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Core
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class BindingService : ServiceBase, IService, IInjectable

    Fields

    _binder

    Declaration
    protected IBinder _binder
    Field Value
    Type Description
    IBinder

    _typeLookup

    Declaration
    protected readonly IDictionary<Type, Type[]> _typeLookup
    Field Value
    Type Description
    IDictionary<Type, Type[]>

    Methods

    BindObject(Object, String)

    Declaration
    protected virtual void BindObject(object item, string id)
    Parameters
    Type Name Description
    Object item
    String id

    Cleanup()

    Declaration
    public override void Cleanup()
    Overrides
    ServiceBase.Cleanup()

    GetDerivedFrom(Object)

    Declaration
    protected virtual Type[] GetDerivedFrom(object item)
    Parameters
    Type Name Description
    Object item
    Returns
    Type Description
    Type[]

    Inject(IResolver)

    Declaration
    public override void Inject(IResolver resolver)
    Parameters
    Type Name Description
    IResolver resolver
    Overrides
    ServiceBase.Inject(IResolver)

    UnbindObject(Object, String)

    Declaration
    protected virtual void UnbindObject(object item, string id)
    Parameters
    Type Name Description
    Object item
    String id

    Implements

    IService
    IInjectable
    Back to top Copyright © 2020 East Side Games Inc.