Esempio n. 1
0
        protected void OnCalculatorException(CalculatorExceptionEventArgs args)
        {
            // TODO: Log exception

            if (CalculatorException != null)
            {
                CalculatorException(this, args);
            }
        }
Esempio n. 2
0
        protected void OnCalculatorException(CalculatorExceptionEventArgs args)
        {
            // TODO: Log exception
            CalculatorEventSource.Log.CalculatorException(CalculatorEventSource.FormatException(args.Exception));

            if (CalculatorException != null)
            {
                CalculatorException(this, args);
            }
        }
        protected void OnCalculatorException(CalculatorExceptionEventArgs args)
        {
            // TODO: Log exception
            if (!(args.Exception is ConfigurationErrorsException))
            {
                Logger.Write(args.Exception, Category.General, Priority.High, 100);
            }

            if (CalculatorException != null)
            {
                CalculatorException(this, args);
            }
        }