protected override void OnStartup(StartupEventArgs args) { log4net.Config.XmlConfigurator.Configure(); IocKernel.Initialize(new IocConfiguration()); ViewModelLocator.SetupNavigation(); base.OnStartup(args); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture; // inicializace DI kontejneru IocKernel.Initialize(new IocConfiguration()); }
protected override void OnStartup(StartupEventArgs e) { AutoMapperConfiguration.RegisterMappings(); IocKernel.Initialize(new IocConfiguration()); base.OnStartup(e); Current.MainWindow = IocKernel.Get <LoginWindow>(); Current.MainWindow?.Show(); }
public App() { IocKernel.Initialize(new IocConfiguration()); var mw = new MainWindow { DataContext = new MainViewModel() }; mw.Show(); }
protected override void OnStartup(StartupEventArgs e) { IocKernel.Initialize(new IocConfiguration()); base.OnStartup(e); _iocKernel = new StandardKernel(); Current.MainWindow = _iocKernel.Get <AuthorizationWindow>(); Current.MainWindow.Show(); }
private void App_OnStartup(object sender, StartupEventArgs e) { var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Databases"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } AppDomain.CurrentDomain.SetData("DataDirectory", path); IocKernel.Initialize(new IocConfiguration()); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); IocKernel.Initialize(new IocConfiguration()); ApplicationViewModel applicationViewModel = IocKernel.Get <ApplicationViewModel>(); MainWindow window = new MainWindow(applicationViewModel); window.Show(); }
public void TestInitialize() { _persons = new List <Person>(); _documents = new List <Document>(); _parentMock = new Mock <IChangeListener>(); _documentStoreFactory = new TestDoucmentStoreFactory(); _messageDialogServiceMock = new Mock <IMessageDialogService>(); IocKernel.Initialize(new IocConfiguration()); }
protected override async void OnStartup(StartupEventArgs e) { IocKernel.Initialize(); IocKernel.StartMessageHandlers(); AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; GetLogger().Info("Application started"); var settings = GetUserSettings(); await settings.SetStartupDefaultsAsync(); base.OnStartup(e); }
public void TestInitialize() { _persons = new List <Person>(); _documentStoreFactory = new TestDoucmentStoreFactory(); _dispatcherMock = new Mock <IDispatcher>(); _excelImportServiceMock = new Mock <IExcelImportService>(); _excelExportServiceMock = new Mock <IExcelExportService>(); _messageDialogServiceMock = new Mock <IMessageDialogService>(); IocKernel.Initialize(new IocConfiguration()); }
public App() { ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; AppDomain.CurrentDomain.AssemblyResolve += Resolver; IocKernel.Initialize(new IocConfiguration()); Current.DispatcherUnhandledException += this.CurrentOnDispatcherUnhandledException; AppDomain.CurrentDomain.UnhandledException += this.CurrentDomainOnUnhandledException; LogMachineDetails(); var settingsService = IocKernel.Get <SettingsService>(); var path = Path.Combine(Environment.CurrentDirectory, SettingsPath); settingsService.LoadAsync(path); this.FixPreferences(); }
private static void Main() { IocKernel.Initialize(new IocConfiguration()); //ClearDb(); var core = IocKernel.Get <CoreProccessor>(); CoreStarter.InitializeCore(core); var baseUrl = "http://*:3131"; using (WebApp.Start <Startup>(baseUrl)) { Console.ReadLine(); } }
public App() { IocKernel.Initialize(new IocConfiguration()); }
protected override void OnStartup(StartupEventArgs e) { IocKernel.Initialize(new IocConfiguration()); base.OnStartup(e); _ = LoadContentAsync(); }
protected override void OnStartup(StartupEventArgs e) { IocKernel.Initialize(new IocResolver()); base.OnStartup(e); }
protected override void OnStartup(StartupEventArgs e) { IocKernel.Initialize(new DependencyInjection()); base.OnStartup(e); }
protected override void OnStartup(StartupEventArgs e) { IocKernel.Initialize(new ThoeryIocConfiguration()); base.OnStartup(e); }
private static void InitializeContainer() { IocKernel.Initialize(new IocConfiguration()); }
protected override void OnStartup(StartupEventArgs e) { IocKernel.Initialize(new IocConfiguration()); DispatcherHelper.Initialize(); base.OnStartup(e); }
public UnitTestServiceNinject() { IocKernel.Initialize(new DIModule()); }
protected override void OnStartup(StartupEventArgs eventArgs) { base.OnStartup(eventArgs); IocKernel.Initialize(new IocConfiguration()); }