public ClientSampleHttpLoggerOutputSuppression(AzureContext context) { azureContext = context; if (!context.TryGetValue <bool>(AzureHttpLogger.PropertySuppressOutput, out OriginalSuppressValue)) { OriginalSuppressValue = false; } AzureHttpLogger.SetSuppressOutput(context, true); }
public void Dispose() { AzureHttpLogger.SetSuppressOutput(azureContext, OriginalSuppressValue); }