Class RequestOperationHolderAdapter
Object adapter implementing IRequestTelemetryOperationHolder but delegating to an Application Insight Microsoft.ApplicationInsights.Extensibility.IOperationHolder{RequestTelemetry} instance. Represents the operation item that holds telemetry which is tracked on end request. Operation can be associated with either WEB or SQL dependencies. Specialized interface to encapsulates information about a web request operation handled by the application.
Inherited Members
Namespace: DNVGL.One.Telemetry.Core.ApplicationInsights.Adapters
Assembly: DNVGL.One.Telemetry.Core.ApplicationInsights.dll
Syntax
public class RequestOperationHolderAdapter : OperationHolderAdapter<RequestTelemetry>, IRequestTelemetryOperationHolder, ITelemetryOperationHolder
Constructors
View SourceRequestOperationHolderAdapter(IOperationHolder<RequestTelemetry>)
Initializes a new instance of the RequestOperationHolderAdapter class.
Declaration
public RequestOperationHolderAdapter(IOperationHolder<RequestTelemetry> operation)
Parameters
| Type | Name | Description |
|---|---|---|
| IOperationHolder<RequestTelemetry> | operation | The adaptee object - an Application Insights operation holder |
Properties
View SourceResponseCode
Gets or sets response code returned by the application after handling the request.
Declaration
public string ResponseCode { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Source
Gets or sets the source for the request telemetry object. This often is a hashed instrumentation key identifying the caller.
Declaration
public string Source { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Url
Gets or sets request url (optional).
Declaration
public Uri Url { get; set; }
Property Value
| Type | Description |
|---|---|
| Uri |