Skip to content

AppCenterFeatureUsageTrackingSession class

Defined in

Namespace: Splat Assembly: Splat.AppCenter.dll Full name: Splat.AppCenterFeatureUsageTrackingSession Modifiers: public sealed

Summary

View source

        Represents a feature usage tracking session that reports usage events and exceptions to App Center Analytics and
        Crashes.
        

Applies to

net10.0, net10.0-android36.0, net10.0-ios26.0, net10.0-macos26.0, net10.0-windows10.0.17763, net10.0-windows10.0.19041, net10.0-tvos26.0, net10.0-maccatalyst26.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-windows10.0.19041, net9.0-windows10.0.17763, net9.0-desktop1.0, net9.0-browserwasm1.0, net8.0, net8.0-windows10.0.19041, net8.0-windows10.0.17763, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471, net481, net462

Class hierarchy
classDiagram
class AppCenterFeatureUsageTrackingSession
class IFeatureUsageTrackingSession~Guid~ {
    <>
}
IFeatureUsageTrackingSession~Guid~ <|.. AppCenterFeatureUsageTrackingSession
class IFeatureUsageTrackingSession {
    <>
}
IFeatureUsageTrackingSession <|.. AppCenterFeatureUsageTrackingSession
class IDisposable {
    <>
}
IDisposable <|.. AppCenterFeatureUsageTrackingSession

Implements: IFeatureUsageTrackingSession, IFeatureUsageTrackingSession, IDisposable

Remarks

This class is used to track the start and end of a feature usage session, as well as any exceptions that occur during the session. It generates unique references for each session and supports hierarchical tracking of sub-features. All tracking data is sent to Microsoft App Center services. Instances of this class are not thread-safe.

Constructors

NameSummary
.ctorInitializes a new instance of the [AppCenterFeatureUsageTrackingSession](# class.

Properties

NameSummary
FeatureNameGets the name of the Feature being tracked.
FeatureReferenceGets the current Feature Usage Unique Reference.
ParentReferenceGets the unique reference for the Parent Tracking Session, if any.

Methods

NameSummary
Dispose
SubFeatureCreates a new sub-feature tracking session with the specified description.
OnExceptionNotify the APM toolset an exception has occurred in the current tracking session.
Inherited members