protected override void OnStartup(StartupEventArgs e) { InfrastructureInstaller.Install(); UserError.RegisterHandler((Func <UserError, IObservable <RecoveryOptionResult> >)IoC.Instance.Resolve <ErrorHandler>().HandleError); base.OnStartup(e); AppDomain.CurrentDomain.AssemblyLoad += AssembliesManager.Loaded; AppDomain.CurrentDomain.AssemblyResolve += AssembliesManager.Resolve; AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); }
static Bootstrapper() { var container = new Container(); InfrastructureInstaller.RegisterServices(container); ControllersInstaller.RegisterServices(container); ViewsInstaller.RegisterServices(container); container.Verify(); Container = container; }
static Bootstrapper() { Logger = log4net.LogManager.GetLogger("RollingFileLogger"); var container = new Container(); container.Options.DefaultScopedLifestyle = new WebRequestLifestyle(); InfrastructureInstaller.RegisterServices(container); ControllersInstaller.RegisterServices(container); container.Verify(); Container = container; //FinanceManagerMessageCallback.SubscribeToMessages(); }
public static void RegisterServices() { InfrastructureInstaller.RegisterServices(Container); ApplicationServicesInstaller.RegisterServices(Container); PersistanceInstaller.RegisterServices(Container); }