Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the DiagnosticContract class.
 /// </summary>
 /// <param name="loggerId">Resource Id of a target logger.</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type for API Management
 /// resource.</param>
 /// <param name="alwaysLog">Specifies for what type of messages
 /// sampling settings should not apply. Possible values include:
 /// 'allErrors'</param>
 /// <param name="sampling">Sampling settings for Diagnostic.</param>
 /// <param name="frontend">Diagnostic settings for incoming/outgoing
 /// HTTP messages to the Gateway.</param>
 /// <param name="backend">Diagnostic settings for incoming/outgoing
 /// HTTP messages to the Backend</param>
 /// <param name="enableHttpCorrelationHeaders">Whether to process
 /// Correlation Headers coming to Api Management Service. Only
 /// applicable to Application Insights diagnostics. Default is
 /// true.</param>
 public DiagnosticContract(string loggerId, string id = default(string), string name = default(string), string type = default(string), string alwaysLog = default(string), SamplingSettings sampling = default(SamplingSettings), PipelineDiagnosticSettings frontend = default(PipelineDiagnosticSettings), PipelineDiagnosticSettings backend = default(PipelineDiagnosticSettings), bool?enableHttpCorrelationHeaders = default(bool?))
     : base(id, name, type)
 {
     AlwaysLog = alwaysLog;
     LoggerId  = loggerId;
     Sampling  = sampling;
     Frontend  = frontend;
     Backend   = backend;
     EnableHttpCorrelationHeaders = enableHttpCorrelationHeaders;
     CustomInit();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the DiagnosticContract class.
 /// </summary>
 /// <param name="loggerId">Resource Id of a target logger.</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type for API Management
 /// resource.</param>
 /// <param name="alwaysLog">Specifies for what type of messages
 /// sampling settings should not apply. Possible values include:
 /// 'allErrors'</param>
 /// <param name="sampling">Sampling settings for Diagnostic.</param>
 /// <param name="frontend">Diagnostic settings for incoming/outgoing
 /// HTTP messages to the Gateway.</param>
 /// <param name="backend">Diagnostic settings for incoming/outgoing
 /// HTTP messages to the Backend</param>
 /// <param name="logClientIp">Log the ClientIP. Default is
 /// false.</param>
 /// <param name="httpCorrelationProtocol">Sets correlation protocol to
 /// use for Application Insights diagnostics. Possible values include:
 /// 'None', 'Legacy', 'W3C'</param>
 /// <param name="verbosity">The verbosity level applied to traces
 /// emitted by trace policies. Possible values include: 'verbose',
 /// 'information', 'error'</param>
 public DiagnosticContract(string loggerId, string id = default(string), string name = default(string), string type = default(string), string alwaysLog = default(string), SamplingSettings sampling = default(SamplingSettings), PipelineDiagnosticSettings frontend = default(PipelineDiagnosticSettings), PipelineDiagnosticSettings backend = default(PipelineDiagnosticSettings), bool?logClientIp = default(bool?), string httpCorrelationProtocol = default(string), string verbosity = default(string))
     : base(id, name, type)
 {
     AlwaysLog               = alwaysLog;
     LoggerId                = loggerId;
     Sampling                = sampling;
     Frontend                = frontend;
     Backend                 = backend;
     LogClientIp             = logClientIp;
     HttpCorrelationProtocol = httpCorrelationProtocol;
     Verbosity               = verbosity;
     CustomInit();
 }