You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="distinctId">The identifier you use for the user.</param>
74
+
/// <param name="eventName">Human friendly name of the event. Recommended format [object] [verb] such as "Project created" or "User signed up".</param>
75
+
/// <param name="timestamp">The timestamp when the event occurred.</param>
76
+
/// <returns><c>true</c> if the event was successfully enqueued. Otherwise <c>false</c>.</returns>
77
+
publicstaticboolCapture(
78
+
thisIPostHogClientclient,
79
+
stringdistinctId,
80
+
stringeventName,
81
+
DateTimeOffsettimestamp)
82
+
=>NotNull(client).Capture(
83
+
distinctId,
84
+
eventName,
85
+
properties:null,
86
+
groups:null,
87
+
sendFeatureFlags:false,
88
+
timestamp:timestamp);
89
+
90
+
/// <summary>
91
+
/// Captures an event with a custom timestamp and additional properties.
/// <param name="distinctId">The identifier you use for the user.</param>
95
+
/// <param name="eventName">Human friendly name of the event. Recommended format [object] [verb] such as "Project created" or "User signed up".</param>
96
+
/// <param name="timestamp">The timestamp when the event occurred.</param>
97
+
/// <param name="properties">Optional: The properties to send along with the event.</param>
98
+
/// <returns><c>true</c> if the event was successfully enqueued. Otherwise <c>false</c>.</returns>
99
+
publicstaticboolCapture(
100
+
thisIPostHogClientclient,
101
+
stringdistinctId,
102
+
stringeventName,
103
+
DateTimeOffsettimestamp,
104
+
Dictionary<string,object>?properties)
105
+
=>NotNull(client).Capture(
106
+
distinctId,
107
+
eventName,
108
+
properties:properties,
109
+
groups:null,
110
+
sendFeatureFlags:false,
111
+
timestamp:timestamp);
112
+
113
+
/// <summary>
114
+
/// Captures an event with a custom timestamp and groups.
/// <param name="distinctId">The identifier you use for the user.</param>
118
+
/// <param name="eventName">Human friendly name of the event. Recommended format [object] [verb] such as "Project created" or "User signed up".</param>
119
+
/// <param name="timestamp">The timestamp when the event occurred.</param>
120
+
/// <param name="groups">A set of groups to send with the event. The groups are identified by their group_type and group_key.</param>
121
+
/// <returns><c>true</c> if the event was successfully enqueued. Otherwise <c>false</c>.</returns>
122
+
publicstaticboolCapture(
123
+
thisIPostHogClientclient,
124
+
stringdistinctId,
125
+
stringeventName,
126
+
DateTimeOffsettimestamp,
127
+
GroupCollectiongroups)
128
+
=>NotNull(client).Capture(
129
+
distinctId,
130
+
eventName,
131
+
properties:null,
132
+
groups:groups,
133
+
sendFeatureFlags:false,
134
+
timestamp:timestamp);
135
+
136
+
/// <summary>
137
+
/// Captures an event with a custom timestamp, properties, and groups.
/// <param name="distinctId">The identifier you use for the user.</param>
141
+
/// <param name="eventName">Human friendly name of the event. Recommended format [object] [verb] such as "Project created" or "User signed up".</param>
142
+
/// <param name="timestamp">The timestamp when the event occurred.</param>
143
+
/// <param name="properties">Optional: The properties to send along with the event.</param>
144
+
/// <param name="groups">Optional: Context of what groups are related to this event, example: { ["company"] = "id:5" }. Can be used to analyze companies instead of users.</param>
145
+
/// <returns><c>true</c> if the event was successfully enqueued. Otherwise <c>false</c>.</returns>
146
+
publicstaticboolCapture(
147
+
thisIPostHogClientclient,
148
+
stringdistinctId,
149
+
stringeventName,
150
+
DateTimeOffsettimestamp,
151
+
Dictionary<string,object>?properties,
152
+
GroupCollection?groups)
153
+
=>NotNull(client).Capture(
154
+
distinctId,
155
+
eventName,
156
+
properties:properties,
157
+
groups:groups,
158
+
sendFeatureFlags:false,
159
+
timestamp:timestamp);
160
+
161
+
/// <summary>
162
+
/// Captures an event with a custom timestamp and feature flags.
/// <param name="distinctId">The identifier you use for the user.</param>
166
+
/// <param name="eventName">Human friendly name of the event. Recommended format [object] [verb] such as "Project created" or "User signed up".</param>
167
+
/// <param name="timestamp">The timestamp when the event occurred.</param>
168
+
/// <param name="sendFeatureFlags">If <c>true</c>, feature flags are sent with the captured event.</param>
169
+
/// <returns><c>true</c> if the event was successfully enqueued. Otherwise <c>false</c>.</returns>
170
+
publicstaticboolCapture(
171
+
thisIPostHogClientclient,
172
+
stringdistinctId,
173
+
stringeventName,
174
+
DateTimeOffsettimestamp,
175
+
boolsendFeatureFlags)
176
+
=>NotNull(client).Capture(
177
+
distinctId,
178
+
eventName,
179
+
properties:null,
180
+
groups:null,
181
+
sendFeatureFlags:sendFeatureFlags,
182
+
timestamp:timestamp);
183
+
184
+
/// <summary>
185
+
/// Captures an event with a custom timestamp, properties, groups, and feature flags.
/// <param name="distinctId">The identifier you use for the user.</param>
189
+
/// <param name="eventName">Human friendly name of the event. Recommended format [object] [verb] such as "Project created" or "User signed up".</param>
190
+
/// <param name="timestamp">The timestamp when the event occurred.</param>
191
+
/// <param name="properties">Optional: The properties to send along with the event.</param>
192
+
/// <param name="groups">Optional: Context of what groups are related to this event, example: { ["company"] = "id:5" }. Can be used to analyze companies instead of users.</param>
193
+
/// <param name="sendFeatureFlags">Default: <c>false</c>. If <c>true</c>, feature flags are sent with the captured event.</param>
194
+
/// <returns><c>true</c> if the event was successfully enqueued. Otherwise <c>false</c>.</returns>
195
+
publicstaticboolCapture(
196
+
thisIPostHogClientclient,
197
+
stringdistinctId,
198
+
stringeventName,
199
+
DateTimeOffsettimestamp,
200
+
Dictionary<string,object>?properties,
201
+
GroupCollection?groups,
202
+
boolsendFeatureFlags)
203
+
=>NotNull(client).Capture(
204
+
distinctId,
205
+
eventName,
206
+
properties:properties,
207
+
groups:groups,
208
+
sendFeatureFlags:sendFeatureFlags,
209
+
timestamp:timestamp);
210
+
69
211
/// <summary>
70
212
/// Captures an event with properties to set on the user.
71
213
/// </summary>
@@ -359,6 +501,11 @@ public static bool CaptureSurveyDismissed(
Copy file name to clipboardExpand all lines: src/PostHog/IPostHogClient.cs
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,24 @@ bool Capture(
84
84
GroupCollection?groups,
85
85
boolsendFeatureFlags);
86
86
87
+
/// <summary>
88
+
/// Captures an event with a custom timestamp.
89
+
/// </summary>
90
+
/// <param name="distinctId">The identifier you use for the user.</param>
91
+
/// <param name="eventName">Human friendly name of the event. Recommended format [object] [verb] such as "Project created" or "User signed up".</param>
92
+
/// <param name="properties">Optional: The properties to send along with the event.</param>
93
+
/// <param name="groups">Optional: Context of what groups are related to this event, example: { ["company"] = "id:5" }. Can be used to analyze companies instead of users.</param>
94
+
/// <param name="sendFeatureFlags">Default: <c>false</c>. If <c>true</c>, feature flags are sent with the captured event.</param>
95
+
/// <param name="timestamp">The timestamp when the event occurred.</param>
96
+
/// <returns><c>true</c> if the event was successfully enqueued. Otherwise <c>false</c>.</returns>
97
+
boolCapture(
98
+
stringdistinctId,
99
+
stringeventName,
100
+
Dictionary<string,object>?properties,
101
+
GroupCollection?groups,
102
+
boolsendFeatureFlags,
103
+
DateTimeOffsettimestamp);
104
+
87
105
/// <summary>
88
106
/// Determines whether a feature is enabled for the specified user.
0 commit comments