예제 #1
0
		private void Init(IServiceProvider serviceProvider)
		{
			MainForm = new MainForm(_serviceProvider);

			Logger = serviceProvider.GetRequiredService<ILogger>();
			Navigator = new Navigator(serviceProvider);

			serviceProvider.GetRequiredService<DockManager>().Init();
			((OutboxManager)ServiceProvider.GetRequiredService<IOutboxManager>()).Init();
#if DEBUG
			// ReSharper disable once ObjectCreationAsStatement
			new FileLog(Logger);
#endif
			Navigator.Init();

			GoJanusListener.Start(_serviceProvider);

			Logger.LogInfo($"{Environment.OSVersion.GetOSNameWithVersion()} , .NET Runtime {Environment.Version}");
			Logger.LogInfo(ApplicationInfo.NameWithVersionAndCopyright);
		}
예제 #2
0
        private void Init(IServiceProvider serviceProvider)
        {
            MainForm = new MainForm(_serviceProvider);

            Logger = serviceProvider.GetRequiredService<ILogger>();
            Navigator = new Navigator(serviceProvider);

            serviceProvider.GetRequiredService<DockManager>().Init();
            ((OutboxManager)ServiceProvider.GetRequiredService<IOutboxManager>()).Init();
            #if DEBUG
            new FileLog(Logger);
            #endif
            Navigator.Init();

            GoJanusListener.Start(_serviceProvider);

            Logger.LogInfo(
                string.Format("{0} , .NET Runtime {1}",
                    Environment.OSVersion.GetOSNameWithVersion(),
                    Environment.Version));
            Logger.LogInfo(ApplicationInfo.NameWithVersionAndCopyright);
        }