Class ApplicationInsightsFeatureUsageTrackingSession
- Namespace
- Splat.Application
Insights
- Assembly
- Splat.ApplicationInsights.dll
Feature Usage Tracking Client for Application Insights.
public sealed class ApplicationInsightsFeatureUsageTrackingSession : IFeatureUsageTrackingSession<Guid>, IFeatureUsageTrackingSession, IDisposable
- Inheritance
-
Application
Insights Feature Usage Tracking Session
- Implements
- Extension Methods
Constructors
ApplicationInsightsFeatureUsageTrackingSession(string, TelemetryClient)
Initializes a new instance of the Application
public ApplicationInsightsFeatureUsageTrackingSession(string featureName, TelemetryClient telemetryClient)
Parameters
featureName
stringThe name of the feature.
telemetryClient
TelemetryClient The Application Insights telemetry client instance to use.
Properties
FeatureName
Gets the name of the Feature being tracked.
Property Value
FeatureReference
Gets the current Feature Usage Unique Reference.
Property Value
ParentReference
Gets the unique reference for the Parent Tracking Session, if any.
Property Value
Methods
Dispose()
OnException(Exception)
Notify the APM toolset an exception has occured in the current tracking session.
Parameters
exception
ExceptionThe exception that occurred.
SubFeature(string)
Starts a sub-feature usage tracking session on the current session.
Parameters
description
stringDescription of the sub-feature.
Returns
- IFeature
Usage Tracking Session The sub-feature usage tracking session.