/// <summary> /// Log parameter. /// </summary> /// <param name="context">Web service request context.</param> /// <param name="parameterName">Parameter name.</param> /// <param name="parameterValue">Parameter value.</param> private void LogParameter(WebServiceContext context, String parameterName, String parameterValue) { Dictionary <String, String> properties; TelemetryClient telemetryClient; try { if (Configuration.InstallationType == InstallationType.Production) { telemetryClient = new TelemetryClient(); if (telemetryClient.IsNotNull()) { properties = new Dictionary <String, String>(); if (context.IsNotNull()) { properties[TelemetryProperty.RequestId.ToString()] = context.RequestId.WebToString(); } telemetryClient.TrackTrace(TelemetryProperty.Parameter + parameterName + " = " + parameterValue, SeverityLevel.Information, properties); } } } catch (Exception) { // Do nothing. We are already in an exception handling sequence. } }