static CompositionRoot() { Kernel = new StandardKernel(); Kernel.Load <CommandBusSampleModule>(); var handlerAssemblies = new List <Assembly> { typeof(CompositionRoot).Assembly }; Kernel.BindCommandHandlers(handlerAssemblies); Kernel.BindQueryHandlers(handlerAssemblies); }