internal static string[] BuildWatsonParameters(string flavor, string version, string traceComponent, string functionName, string exceptionType, string callstack, int callStackHash) { return(new string[] { WatsonReport.GetValidString(flavor), WatsonReport.GetValidString(version), "OWAClient", WatsonReport.GetValidString(traceComponent), WatsonReport.GetValidString(functionName), WatsonReport.GetValidString(exceptionType), WatsonClientReport.GetStringHashFromString(callStackHash) }); }
protected override void WriteSpecializedPartOfTextReport(TextWriter reportFile) { base.WriteReportFileHeader(reportFile, "Manifest Report: Non Fatal Error for OWA"); reportFile.WriteLine("P1(flavor)={0}", WatsonReport.GetValidString(base.BucketingParameter <WatsonClientReport.BucketParamId>(WatsonClientReport.BucketParamId.Flavor))); reportFile.WriteLine("P2(exVersion)={0}", WatsonReport.GetValidString(base.BucketingParameter <WatsonClientReport.BucketParamId>(WatsonClientReport.BucketParamId.ExVersion))); reportFile.WriteLine("P3(appName)={0}", "OWAClient"); reportFile.WriteLine("P4(traceComponent)={0}", WatsonReport.GetValidString(base.BucketingParameter <WatsonClientReport.BucketParamId>(WatsonClientReport.BucketParamId.TraceComponent))); reportFile.WriteLine("P5(function)={0}", WatsonReport.GetValidString(base.BucketingParameter <WatsonClientReport.BucketParamId>(WatsonClientReport.BucketParamId.Function))); reportFile.WriteLine("P6(exceptionType)={0}", WatsonReport.GetValidString(base.BucketingParameter <WatsonClientReport.BucketParamId>(WatsonClientReport.BucketParamId.ExceptionType))); reportFile.WriteLine("P7(callstackHash)={0}", base.BucketingParameter <WatsonClientReport.BucketParamId>(WatsonClientReport.BucketParamId.CallstackHash)); reportFile.WriteLine("filename={0}", WatsonReport.GetValidString(this.fileName)); WatsonClientReport.WriteReportFileClientCallStack(reportFile, this.ReportCallStack); WatsonClientReport.WriteReportFileClientDetailedExceptionInformation(reportFile, this.DetailedExceptionInformation); }
protected override void PrepareBucketingParameters() { if (this.bucketingParametersPrepared) { return; } base.PrepareBucketingParameters(); base.SetBucketingParameter <WatsonClientReport.BucketParamId>(WatsonClientReport.BucketParamId.ExVersion, this.version); base.SetBucketingParameter <WatsonClientReport.BucketParamId>(WatsonClientReport.BucketParamId.AppName, "OWAClient"); base.SetBucketingParameter <WatsonClientReport.BucketParamId>(WatsonClientReport.BucketParamId.TraceComponent, this.traceComponent); base.SetBucketingParameter <WatsonClientReport.BucketParamId>(WatsonClientReport.BucketParamId.Function, this.function); base.SetBucketingParameter <WatsonClientReport.BucketParamId>(WatsonClientReport.BucketParamId.ExceptionType, this.exceptionType); base.SetBucketingParameter <WatsonClientReport.BucketParamId>(WatsonClientReport.BucketParamId.CallstackHash, WatsonClientReport.GetStringHashFromString(this.callStackHash)); base.SetBucketingParameter <WatsonClientReport.BucketParamId>(WatsonClientReport.BucketParamId.FileName, string.Empty); this.bucketingParametersPrepared = true; }