Exemplo n.º 1
0
        /// <summary>
        /// Display a handled error
        /// </summary>
        private void MessagingOnHandledErrorEvent(HandledErrorPacket packet)
        {
            var hstack = (!string.IsNullOrEmpty(packet.StackTrace) ? (Environment.NewLine + " " + packet.StackTrace) : string.Empty);

            _logging.Error(packet.Message + hstack);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Display a handled error
        /// </summary>
        public void DisplayHandledErrorPacket(HandledErrorPacket packet)
        {
            var hstack = (!string.IsNullOrEmpty(packet.StackTrace) ? (Environment.NewLine + " " + packet.StackTrace) : string.Empty);

            _logging.Error(packet.Message + hstack);
        }