public static IKernel CreateFromKernel(n.IKernel baseKernel) { if (baseKernel.GetBindings(typeof(my.IKernel)).Any()) { throw new DependencyException("Make sure that the given kernel doesn't bind to IKernel, because this bind is used internally"); } return(new Yaaf.DependencyInjection.Ninject.NinjectKernel(baseKernel)); }