Basic implementation of updating which shop is active.

This commit is contained in:
Patrick Fic
2020-01-20 12:28:08 -08:00
parent 73a2cb4fcb
commit bc5cb13113
9 changed files with 299 additions and 12 deletions

View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BodyshopUploader.Utils
{
public static class ApplicationExceptionHandler
{
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
public static void InitExceptionHandlers()
{
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
//do something with the file contents
}
public static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
logger.Fatal((e.ExceptionObject as Exception), "Unhandled generic exception.");
}
}
}