static void Main() { RegisterAppDomainExceptionLogging(); if (ShouldQuitWithoutProperDotNetFramework()) { return; } Logger.Initialize(); var appInfo = new ApplicationInfo { Version = Application.ProductVersion, OS = Environment.OSVersion.VersionString, DotNet = NetFrameworkVersionExtension.FriendlyName(NewestFrameworkVersion) }; Lib.Logging.CreateLogger(typeof(Program)).Info(appInfo); var pluginTypes = new List <Type> { typeof(Plugin.Autosplits.Plugin), typeof(Plugin.FileWriter.Plugin), typeof(Plugin.HttpClient.Plugin), typeof(Plugin.PipeServer.Plugin), typeof(Plugin.Updater.Plugin), }; using (var di = DiabloInterface.Create(appInfo, pluginTypes)) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainWindow(di)); } }
static void Main() { RegisterAppDomainExceptionLogging(); if (ShouldQuitWithoutProperDotNetFramework()) { return; } Log4NetLogger.Initialize(); LogApplicationInfo(); var pluginTypes = new List <Type> { typeof(Plugin.Autosplits.Plugin), typeof(Plugin.FileWriter.Plugin), typeof(Plugin.HttpClient.Plugin), typeof(Plugin.PipeServer.Plugin), typeof(Plugin.Updater.Plugin), }; using (var di = DiabloInterface.Create(pluginTypes)) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainWindow(di)); } }
static void Main() { RegisterAppDomainExceptionLogging(); if (ShouldQuitWithoutProperDotNetFramework()) { return; } Log4NetLogger.Initialize(); LogApplicationInfo(); using (var di = DiabloInterface.Create()) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainWindow(di)); } }