public override void Activate(Ninject.Activation.IContext context, Ninject.Activation.InstanceReference reference) { reference.IfInstanceIs<IUseActions>(useAction => { useAction.Actions = () => context.Kernel.Get<IActionBuilder>(); }); base.Activate(context, reference); }