示例#1
0
 protected bool Equals(ExportConfiguration config)
 {
     return(string.Equals(SourceFileNamePath, config.SourceFileNamePath) &&
            string.Equals(TargetFileNamePath, config.TargetFileNamePath) &&
            string.Equals(Environment, config.Environment) &&
            EnableLogMessageExport.Equals(config.EnableLogMessageExport) &&
            LogMessageFormat == config.LogMessageFormat &&
            MinimumSeverity == config.MinimumSeverity &&
            IncludeSessionSummary.Equals(config.IncludeSessionSummary) &&
            IncludeExceptionDetails.Equals(config.IncludeExceptionDetails));
 }
 protected bool Equals(ExportAddInConfiguration config)
 {
     return(string.Equals(SessionExportPath, config.SessionExportPath) &&
            string.Equals(Environment, config.Environment) &&
            AutoExportSessions.Equals(config.AutoExportSessions) &&
            UseUniqueFilenames.Equals(config.UseUniqueFilenames) &&
            string.Equals(MetricsToExport, config.MetricsToExport) &&
            EnableLogMessageExport.Equals(config.EnableLogMessageExport) &&
            LogMessageFormat == config.LogMessageFormat &&
            MinimumSeverity == config.MinimumSeverity &&
            IncludeSessionSummary.Equals(config.IncludeSessionSummary) &&
            IncludeExceptionDetails.Equals(config.IncludeExceptionDetails));
 }
示例#3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (SourceFileNamePath != null ? SourceFileNamePath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TargetFileNamePath != null ? TargetFileNamePath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Environment != null ? Environment.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ EnableLogMessageExport.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)LogMessageFormat;
         hashCode = (hashCode * 397) ^ (int)MinimumSeverity;
         hashCode = (hashCode * 397) ^ IncludeSessionSummary.GetHashCode();
         hashCode = (hashCode * 397) ^ IncludeExceptionDetails.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (SessionExportPath != null ? SessionExportPath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Environment != null ? Environment.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ AutoExportSessions.GetHashCode();
         hashCode = (hashCode * 397) ^ UseUniqueFilenames.GetHashCode();
         hashCode = (hashCode * 397) ^ (MetricsToExport != null ? MetricsToExport.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ EnableLogMessageExport.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)LogMessageFormat;
         hashCode = (hashCode * 397) ^ (int)MinimumSeverity;
         hashCode = (hashCode * 397) ^ IncludeSessionSummary.GetHashCode();
         hashCode = (hashCode * 397) ^ IncludeExceptionDetails.GetHashCode();
         return(hashCode);
     }
 }