AdvancedLauncher.Tools.BugTrapBootstrapper.Inject C# (CSharp) Method

Inject() public static method

public static Inject ( ) : void
return void
        public static void Inject()
        {
            var currentAsm = Assembly.GetExecutingAssembly();
            AssemblyTitleAttribute title = currentAsm.GetCustomAttributes(typeof(AssemblyTitleAttribute), false)[0] as AssemblyTitleAttribute;
            ExceptionHandler.AppName = title.Title;
            ExceptionHandler.AppVersion = currentAsm.GetName().Version.ToString();
            ExceptionHandler.DumpType = MinidumpType.Normal;
            ExceptionHandler.Flags = FlagsType.DetailedMode | FlagsType.EditMail;
            ExceptionHandler.ReportFormat = ReportFormatType.Text;
            ExceptionHandler.SupportEMail = ExceptionHandler.NotificationEMail = "[email protected]";
            ExceptionHandler.SupportHost = "bugtrap.renamon.ru";
            ExceptionHandler.SupportPort = 30700;
            ExceptionHandler.SupportURL = "https://github.com/GoldRenard/DMOAdvancedLauncher/issues";
            ExceptionHandler.BeforeUnhandledException += (s, e) => {
                dynamic args = e;
                LOGGER.Error("BugTrap BeforeUnhandledException", args.ExceptionObject);
            };
        }