protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); ServiceBus.Init(); }
public IDomainBus Build(IContainerScope container) { _dispBuilder.MustNotBeNull("Dispatcher must be configured"); _host.MustNotBeNull("Processors must be configured"); _host.VerifyWeHaveAll(); _dispBuilder.Verify(); var auditor = new BusAuditor(_host.GetStorage <IStoreAudits>()); _host.Build(container, auditor); var dispatcher = _dispBuilder.BuildClient(_host.HostName, _host.GetStorage <IDeliveryErrorsQueue>(), auditor); dispatcher.SubscribeToServer(_host.Endpoints); _bus.Init(dispatcher, _host, _dispBuilder.Receiver); _bus.StartProcessors(); _bus.StartListeningForMessages(); return(_bus); }