示例#1
0
 public WatsonGenericReport(string eventType, string appVersion, string appName, string assemblyVersion, string assemblyName, string exceptionType, string callstack, string callstackHash, string methodName, string detailedExceptionInformation) : base(eventType, null)
 {
     if (WatsonGenericReport.bucketingParamNames == null)
     {
         Interlocked.Exchange <string[]>(ref WatsonGenericReport.bucketingParamNames, new string[]
         {
             "flavor",
             "appVersion",
             "appName",
             "assemblyName",
             "exMethodName",
             "exceptionType",
             "callstackHash",
             "assemblyVer"
         });
     }
     WatsonGenericReport.CheckStringParam("appVersion", appVersion);
     WatsonGenericReport.CheckStringParam("appName", appName);
     WatsonGenericReport.CheckStringParam("assemblyVersion", assemblyVersion);
     WatsonGenericReport.CheckStringParam("assemblyName", assemblyName);
     WatsonGenericReport.CheckStringParam("exceptionType", exceptionType);
     WatsonGenericReport.CheckStringParam("callstackHash", callstackHash);
     WatsonGenericReport.CheckStringParam("methodName", methodName);
     this.appVersion      = appVersion;
     this.appName         = appName;
     this.assemblyVersion = assemblyVersion;
     this.assemblyName    = assemblyName;
     this.exceptionType   = exceptionType;
     this.callstack       = callstack;
     this.callstackHash   = callstackHash;
     this.methodName      = methodName;
     this.detailedExceptionInformation = detailedExceptionInformation;
 }
示例#2
0
 protected override void WriteSpecializedPartOfTextReport(TextWriter reportFile)
 {
     base.WriteReportFileHeader(reportFile, "Manifest Report");
     reportFile.WriteLine("P1(flavor)={0}", WatsonReport.GetValidString(base.BucketingParameter <WatsonReport.BucketParamId>(WatsonReport.BucketParamId.Flavor)));
     reportFile.WriteLine("P2(appVersion)={0}", WatsonReport.GetValidString(base.BucketingParameter <WatsonReport.BucketParamId>(WatsonReport.BucketParamId.AppVersion)));
     reportFile.WriteLine("P3(appName)={0}", WatsonReport.GetValidString(base.BucketingParameter <WatsonReport.BucketParamId>(WatsonReport.BucketParamId.AppName)));
     reportFile.WriteLine("P4(assemblyName)={0}", WatsonReport.GetValidString(base.BucketingParameter <WatsonReport.BucketParamId>(WatsonReport.BucketParamId.AssemblyName)));
     reportFile.WriteLine("P5(exMethodName)={0}", WatsonReport.GetValidString(base.BucketingParameter <WatsonReport.BucketParamId>(WatsonReport.BucketParamId.ExMethodName)));
     reportFile.WriteLine("P6(exceptionType)={0}", WatsonReport.GetValidString(base.BucketingParameter <WatsonReport.BucketParamId>(WatsonReport.BucketParamId.ExceptionType)));
     reportFile.WriteLine("P7(callstackHash)={0}", base.BucketingParameter <WatsonReport.BucketParamId>(WatsonReport.BucketParamId.CallstackHash));
     reportFile.WriteLine("P8(assemblyVer)={0}", WatsonReport.GetValidString(this.assemblyVersion));
     WatsonGenericReport.WriteReportFileCallStack(reportFile, this.callstack);
     if (!string.IsNullOrEmpty(this.detailedExceptionInformation))
     {
         WatsonGenericReport.WriteReportFileDetailedExceptionInformation(reportFile, this.detailedExceptionInformation);
     }
 }
示例#3
0
 public WatsonLatencyReport(string eventType, string triggerVersion, string locationIdentity, string exceptionName, string callstack, string methodName, string detailedExceptionInformation) : base(eventType, WatsonReport.GetValidString(triggerVersion), ExWatson.AppName, WatsonReport.ExchangeFormattedVersion(ExWatson.ApplicationVersion), WatsonReport.GetValidString(locationIdentity), WatsonReport.GetValidString(exceptionName), WatsonReport.GetValidString(callstack), WatsonGenericReport.StringHashFromStackTrace(WatsonReport.GetValidString(callstack)), WatsonReport.GetValidString(methodName), detailedExceptionInformation)
 {
 }
示例#4
0
 internal WatsonTroubleshootingReport(string eventType, string triggerVersion, string locationIdentity, string exceptionName, string callstack, string methodName, string detailedExceptionInformation, string traceFileName) : base(eventType, WatsonReport.GetValidString(triggerVersion), ExWatson.AppName, WatsonReport.ExchangeFormattedVersion(ExWatson.ApplicationVersion), WatsonReport.GetValidString(locationIdentity), WatsonReport.GetValidString(exceptionName), WatsonReport.GetValidString(callstack), WatsonGenericReport.StringHashFromStackTrace(WatsonReport.GetValidString(callstack)), WatsonReport.GetValidString(methodName), detailedExceptionInformation)
 {
     this.traceFileName = traceFileName;
 }