AppCenterFeatureUsageTrackingSession class¶
Defined in
Namespace: Splat Assembly: Splat.AppCenter.dll Full name: Splat.AppCenterFeatureUsageTrackingSession Modifiers: public sealed
Summary¶
View source (opens in a new tab)
Represents a feature usage tracking session that reports usage events and exceptions to App Center Analytics and
Crashes.
Applies to
net11.0, net11.0-windows10.0.19041, net11.0-android37.0, net11.0-macos26.5, net11.0-tvos26.5, net11.0-maccatalyst26.5, net11.0-ios26.5, net10.0, net10.0-windows10.0.19041, net10.0-windows10.0.17763, net10.0-android36.0, net10.0-tvos26.0, net10.0-macos26.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net472, net481
Class hierarchy
classDiagram
class AppCenterFeatureUsageTrackingSession
class IFeatureUsageTrackingSession~Guid~ {
<<interface>>
}
IFeatureUsageTrackingSession~Guid~ <|.. AppCenterFeatureUsageTrackingSession
class IFeatureUsageTrackingSession {
<<interface>>
}
IFeatureUsageTrackingSession <|.. AppCenterFeatureUsageTrackingSession
class IDisposable {
<<interface>>
}
IDisposable <|.. AppCenterFeatureUsageTrackingSession
Implements: IFeatureUsageTrackingSession
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¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [AppCenterFeatureUsageTrackingSession](#Splat.AppCenterFeatureUsageTrackingSession) class. |
Properties¶
| Name | Summary |
|---|---|
| FeatureName | Gets the name of the Feature being tracked. |
| FeatureReference | Gets the current Feature Usage Unique Reference. |
| ParentReference | Gets the unique reference for the Parent Tracking Session, if any. |
Methods¶
| Name | Summary |
|---|---|
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| SubFeature | Creates a new sub-feature tracking session with the specified description. |
| OnException | Notify the APM toolset an exception has occurred in the current tracking session. |
Inherited members
System.Object.Equals(System.Object)(opens in a new tab)System.Object.Equals(System.Object,System.Object)(opens in a new tab)System.Object.GetHashCode(opens in a new tab)System.Object.GetType(opens in a new tab)System.Object.MemberwiseClone(opens in a new tab)System.Object.ReferenceEquals(System.Object,System.Object)(opens in a new tab)System.Object.ToString(opens in a new tab)