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
BindingService
Assembly: cs.temp.dll.dll
Syntax
public abstract class BindingService : ServiceBase, IService, IInjectable
Fields
_binder
Declaration
protected IBinder _binder
Field Value
_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
Cleanup()
Declaration
public override void Cleanup()
Overrides
GetDerivedFrom(Object)
Declaration
protected virtual Type[] GetDerivedFrom(object item)
Parameters
Type |
Name |
Description |
Object |
item |
|
Returns
Inject(IResolver)
Declaration
public override void Inject(IResolver resolver)
Parameters
Overrides
UnbindObject(Object, String)
Declaration
protected virtual void UnbindObject(object item, string id)
Parameters
Implements