Interface IInjectable
The IInjectable interface enable a class to have its dependencies injected by the IInjector in the form of an IResolver.
Namespace: IdleKit.IoC
Assembly: cs.temp.dll.dll
Syntax
public interface IInjectable
Methods
Inject(IResolver)
Allow the IResolver be injected into this IInjectable class and then the IInjectable class would be able to fetch its dependencies using the IResolver. It is done this way in IdleKit for simplicity and to avoid using System.Reflection
Declaration
void Inject(IResolver resolver)
Parameters
Type | Name | Description |
---|---|---|
IResolver | resolver | the IResolver that is being injected |