예제 #1
0
        public LoggingTest()
        {
            IoCConfiguration.Setup(true);

            this.connection          = new SqlConnection(DatabaseConfiguration.ErrorsReportingConnectionString);
            this.exceptionsSqlHelper = new ExceptionsSqlHelper(this.connection);
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public SalesManagerTest()
 {
     IoCConfiguration.Setup(true);
 }