protected void Application_Start() { RouteConfig.RegisterRoutes(RouteTable.Routes); CultureAttribute.Register(); // Load configuration data AppSettings = TaskZeroSettings.Initialize(); }
protected void Application_Start() { RouteConfig.RegisterRoutes(RouteTable.Routes); CultureAttribute.Register(); // Load configuration data AppSettings = TaskZeroSettings.Initialize(); // Configure the MementoFX var container = MementoStartup.UnityConfig <InMemoryBus, MongoDbEventStore>(); // Save global references to the FX core elements Bus = container.Resolve <IBus>(); AggregateRepository = container.Resolve <IRepository>(); // Add sagas and handlers to the bus Bus.RegisterSaga <ManageTaskSaga>(); Bus.RegisterHandler <NotificationHandler>(); Bus.RegisterHandler <ManageTaskDenormalizer>(); }