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
Inherited Members
Namespace: DNVGL.One.Telemetry.Core.ApplicationInsights.Adapters
Assembly: DNVGL.One.Telemetry.Core.ApplicationInsights.dll
Syntax
public class DependencyOperationHolderAdapter : OperationHolderAdapter<DependencyTelemetry>, IDependencyTelemetryOperationHolder, ITelemetryOperationHolder
Constructors
View SourceDependencyOperationHolderAdapter(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 SourceData
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 |
ResultCode
Gets or sets the Result Code.
Declaration
public string ResultCode { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
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 |
Type
Gets or sets the dependency type name.
Declaration
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |