Skip to content

Commit 4dc1a28

Browse files
authored
feat: comprehensive Mixpanel analytics integration + codebase cleanup
2 parents f8cd421 + b021249 commit 4dc1a28

File tree

25 files changed

+1951
-676
lines changed

25 files changed

+1951
-676
lines changed

.claude/settings.local.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"Bash(dir:*)",
1313
"Bash(timeout:*)",
1414
"Bash(ping:*)",
15-
"Bash(findstr:*)"
15+
"Bash(findstr:*)",
16+
"Bash(npx eslint:*)"
1617
],
1718
"deny": [],
1819
"ask": []

ThingConnect.Pulse.Server/Services/Monitoring/ProbeService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public async Task<CheckResult> PingAsync(Guid endpointId, string host, int timeo
6161
try
6262
{
6363
// Use overload that accepts cancellation token
64-
PingReply reply = await ping.SendPingAsync(host, timeoutMs, null, null, combinedCts.Token);
64+
PingReply reply = await ping.SendPingAsync(host, TimeSpan.FromMilliseconds(timeoutMs), cancellationToken: combinedCts.Token);
6565
stopwatch.Stop();
6666

6767
if (reply.Status == IPStatus.Success)
@@ -106,7 +106,7 @@ public async Task<CheckResult> TcpConnectAsync(Guid endpointId, string host, int
106106
using var combinedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token);
107107

108108
// Use the combined cancellation token for the connection
109-
Task connectTask = tcpClient.ConnectAsync(host, port, combinedCts.Token);
109+
Task connectTask = tcpClient.ConnectAsync(host, port, combinedCts.Token).AsTask();
110110

111111
try
112112
{

ThingConnect.Pulse/data-model.cs

Lines changed: 0 additions & 200 deletions
This file was deleted.

0 commit comments

Comments
 (0)