private void TraceConfiguration() { if (DebugTrace.Info) { if (this.overrideSection == null) { DebugTrace.Trace(TraceLevel.Info, "No override config section loaded"); } else { DebugTrace.Trace(TraceLevel.Info, "Override config section loaded"); } DebugTrace.Trace(TraceLevel.Info, "Default timeout is {0}", this.defaultTimeout); DebugTrace.Trace(TraceLevel.Info, "Maximum timeout is {0}", this.maxTimeout); DebugTrace.Trace(TraceLevel.Info, "Operation timeout is {0}", this.portConfig.OperationTimeout); X509Certificate2 certificate = this.portConfig.X509Certificate; if (certificate != null) { DebugTrace.Trace(TraceLevel.Info, "Network endpoints are enabled"); DebugTrace.Trace(TraceLevel.Info, "Host name is {0}", this.portConfig.HostName); DebugTrace.Trace(TraceLevel.Info, "HTTPS port is {0}", this.portConfig.HttpsPort); DebugTrace.Trace(TraceLevel.Info, "Base path is {0}", this.portConfig.BasePath); DebugTrace.Trace(TraceLevel.Info, "Identity certificate SubjectName: {0}", certificate.SubjectName.Name); DebugTrace.Trace(TraceLevel.Info, "Identity certificate IssuerName: {0}", certificate.IssuerName.Name); DebugTrace.Trace(TraceLevel.Info, "Identity certificate Thumbprint: {0}", certificate.Thumbprint); DebugTrace.Trace(TraceLevel.Info, "Identity certificate Hash: {0}", Convert.ToBase64String(certificate.GetCertHash())); DebugTrace.Trace(TraceLevel.Info, "SupportingTokens are {0}", this.portConfig.SupportingTokensEnabled ? "enabled" : "disabled"); if (DebugTrace.Pii) { if (this.portConfig.GlobalAclWindowsIdentities == null) { DebugTrace.Trace(TraceLevel.Info, "Global ACL contains no windows identities"); } else { DebugTrace.Trace(TraceLevel.Info, "Global ACL contains the following windows identities:"); foreach (string str in this.portConfig.GlobalAclWindowsIdentities) { DebugTrace.TracePii(TraceLevel.Info, str); } } if (this.portConfig.GlobalAclX509CertificateThumbprints == null) { DebugTrace.Trace(TraceLevel.Info, "Global ACL contains no X509 certificate thumbprints"); } else { DebugTrace.Trace(TraceLevel.Info, "Global ACL contains the following X509 certificate thumbprints:"); foreach (string str2 in this.portConfig.GlobalAclX509CertificateThumbprints) { DebugTrace.TracePii(TraceLevel.Info, str2); } } } } if (this.diagnosticTraceLevel == SourceLevels.Off) { DebugTrace.Trace(TraceLevel.Info, "TransactionBridge ETW tracing is disabled"); } else { DebugTrace.Trace(TraceLevel.Info, "TransactionBridge ETW tracing is enabled at {0} level", this.diagnosticTraceLevel); } if (this.serviceModelDiagnosticTraceLevel == SourceLevels.Off) { DebugTrace.Trace(TraceLevel.Info, "ServiceModel ETW tracing is disabled"); } else { DebugTrace.Trace(TraceLevel.Info, "ServiceModel ETW tracing is enabled at {0} level", this.serviceModelDiagnosticTraceLevel); } } }