const classafIoc::IocHelper
sys::Obj afIoc::IocHelper
Little methods to help ease your IoC development.
- debugOperation
static Obj? debugOperation(|->Obj? operation)Runs the given function with extensive IoC logging turned on. Example usage:
IocHelper.debugOperation |->| { registry.dependencyByType(MyService#) }- locals
A read only copy of the
Actor.localsmap with the keys sorted alphabetically. Handy for debugging. Example:IocHelper.locals.each |value, key| { echo("$key = $value") }