Skip to content

Commit 7bf99f6

Browse files
committed
Added a helper for checking for session heartbeats.
1 parent a1a44f9 commit 7bf99f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Source/Shared/Extensions/EventExtensions.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ public static bool IsFeatureUsage(this Event ev) {
9494
return ev.Type == Event.KnownTypes.FeatureUsage;
9595
}
9696

97+
/// <summary>
98+
/// Returns true if the event type is session heartbeat.
99+
/// </summary>
100+
public static bool IsSessionHeartbeat(this Event ev) {
101+
return ev.Type == Event.KnownTypes.SessionHeartbeat;
102+
}
103+
97104
/// <summary>
98105
/// Returns true if the event type is session start.
99106
/// </summary>

0 commit comments

Comments
 (0)