maybe i don't understand it right but if i have a this code it works
kernel = new StandardKernel();
kernel.Scan(scanner =>
{
scanner.FromCallingAssembly();
scanner.WhereTypeIsNotInNamespace("NDjango");
scanner.FromAssembliesInPath(AppDomain.CurrentDomain.BaseDirectory);
scanner.WhereTypeInheritsFrom();
});
but if i have this code it does not work
kernel = new StandardKernel();
kernel.Scan(scanner =>
{
scanner.FromCallingAssembly();
scanner.WhereTypeIsNotInNamespace("NDjango");
scanner.FromAssembliesInPath(AppDomain.CurrentDomain.BaseDirectory);
scanner.WhereTypeInheritsFrom();
scanner.WhereTypeInheritsFrom();
});
it look like thee first WhereTypeInheritsFrom is excluding the other
maybe i don't understand it right but if i have a this code it works kernel = new StandardKernel(); kernel.Scan(scanner => { scanner.FromCallingAssembly(); scanner.WhereTypeIsNotInNamespace("NDjango"); scanner.FromAssembliesInPath(AppDomain.CurrentDomain.BaseDirectory); scanner.WhereTypeInheritsFrom();
});
but if i have this code it does not work kernel = new StandardKernel(); kernel.Scan(scanner => { scanner.FromCallingAssembly(); scanner.WhereTypeIsNotInNamespace("NDjango"); scanner.FromAssembliesInPath(AppDomain.CurrentDomain.BaseDirectory); scanner.WhereTypeInheritsFrom();
scanner.WhereTypeInheritsFrom();
});
it look like thee first WhereTypeInheritsFrom is excluding the other