/// <summary> /// Load your modules or register your services here! /// </summary> /// <param name="kernel">The kernel.</param> private static void RegisterServices(IKernel kernel) { kernel.Bind <ILocalDataStore>().To <LocalDataStore>(); kernel.Bind <IDataContext>().To <LocalDataStoreDataContext>(); kernel.Bind <ILocalDataRepository>().To <LocalDataRepository>(); NServiceBusConfig.CreateServiceBus(kernel); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); NServiceBusConfig.Configure(); }