Esempio n. 1
0
        static void Main()
        {
            var bugsnag = new Bugsnag.Client(new Configuration("5661e5af136881630508dac483c311fe"));

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new DReAMUI());
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var configuration = new Configuration {
                ApiKey   = Environment.GetEnvironmentVariable("MAZE_API_KEY"),
                Endpoint = new Uri(Environment.GetEnvironmentVariable("MAZE_ENDPOINT"))
            };
            var bugsnag = new Bugsnag.Client(configuration);
            var app     = new Microsoft.Extensions.CommandLineUtils.CommandLineApplication();

            app.Command("handled", config => {
                bugsnag.Notify(new Exception("Handled Error for Maze Runner"));
            });
            app.Execute(args);
        }