示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExceptionBase" /> class.
 /// </summary>
 /// <param name="exceptionBase">The exception base.</param>
 public ExceptionBase(ExceptionBase exceptionBase = null)
     : base(exceptionBase)
 {
     if (exceptionBase != null)
     {
         this.Message = exceptionBase.Message;
         this.TargetSite = exceptionBase.TargetSite;
         this.StackTrace = exceptionBase.StackTrace;
         this.Level = exceptionBase.Level;
         this.Source = exceptionBase.Source;
         this.OperatorCredential = exceptionBase.OperatorCredential;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExceptionStatisticCriteria" /> class.
 /// </summary>
 /// <param name="exceptionBase">The exception base.</param>
 public ExceptionStatisticCriteria(ExceptionBase exceptionBase)
     : base(exceptionBase)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExceptionCriteria" /> class.
 /// </summary>
 /// <param name="exceptionBase">The exception base.</param>
 public ExceptionCriteria(ExceptionBase exceptionBase)
     : base(exceptionBase)
 {
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExceptionInfo"/> class.
 /// </summary>
 public ExceptionInfo(ExceptionBase exceptionBase = null)
     : base()
 {
     this.Key = Guid.NewGuid();
     this.CreatedStamp = DateTime.UtcNow;
 }