コード例 #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);
 }