Show / Hide Table of Contents

Class DependencyOperationHolderAdapter

Object adapter implementing IDependencyTelemetryOperationHolder but delegating to an Application Insight Microsoft.ApplicationInsights.Extensibility.IOperationHolder{DependencyTelemetry} 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 an application dependency call

Inheritance
System.Object
OperationHolderAdapter<DependencyTelemetry>
DependencyOperationHolderAdapter
Implements
IDependencyTelemetryOperationHolder
ITelemetryOperationHolder
Inherited Members
OperationHolderAdapter<DependencyTelemetry>.Operation
OperationHolderAdapter<DependencyTelemetry>.Id
OperationHolderAdapter<DependencyTelemetry>.Name
OperationHolderAdapter<DependencyTelemetry>.Success
OperationHolderAdapter<DependencyTelemetry>.Duration
OperationHolderAdapter<DependencyTelemetry>.Metrics
OperationHolderAdapter<DependencyTelemetry>.Properties
OperationHolderAdapter<DependencyTelemetry>.Timestamp
OperationHolderAdapter<DependencyTelemetry>.SetSuccess()
OperationHolderAdapter<DependencyTelemetry>.SetFailed()
OperationHolderAdapter<DependencyTelemetry>.StopOperation()
Namespace: DNVGL.One.Telemetry.Core.ApplicationInsights.Adapters
Assembly: DNVGL.One.Telemetry.Core.ApplicationInsights.dll
Syntax
public class DependencyOperationHolderAdapter : OperationHolderAdapter<DependencyTelemetry>, IDependencyTelemetryOperationHolder, ITelemetryOperationHolder

Constructors

View Source

DependencyOperationHolderAdapter(IOperationHolder<DependencyTelemetry>)

Initializes a new instance of the DependencyOperationHolderAdapter class.

Declaration
public DependencyOperationHolderAdapter(IOperationHolder<DependencyTelemetry> operation)
Parameters
Type Name Description
IOperationHolder<DependencyTelemetry> operation

The adaptee object - an Application Insights operation holder

Properties

View Source

Data

Gets or sets data associated with the current dependency instance. Command name/statement for SQL dependency, URL for http dependency.

Declaration
public string Data { get; set; }
Property Value
Type Description
System.String
View Source

ResultCode

Gets or sets the Result Code.

Declaration
public string ResultCode { get; set; }
Property Value
Type Description
System.String
View Source

Target

Gets or sets target of dependency call. SQL server name, url host, etc.

Declaration
public string Target { get; set; }
Property Value
Type Description
System.String
View Source

Type

Gets or sets the dependency type name.

Declaration
public string Type { get; set; }
Property Value
Type Description
System.String

Implements

IDependencyTelemetryOperationHolder
ITelemetryOperationHolder

See Also

ITelemetryOperationHolder
  • View Source
Back to top Copyright © DNV GL AS. All rights reserved.