public LoggingTest() { IoCConfiguration.Setup(true); this.connection = new SqlConnection(DatabaseConfiguration.ErrorsReportingConnectionString); this.exceptionsSqlHelper = new ExceptionsSqlHelper(this.connection); }
static async Task Main(string[] args) { IoCConfiguration.Setup(); int a = 2, b = 0; try { int c = a / b; } catch (Exception exception) { await Logging.SaveAsync(exception, AssemblyHelper.AssemblyName, ConsoleErrorType.DivideByZero); } }
public SalesManagerTest() { IoCConfiguration.Setup(true); }