Skip to content

Commit 5c00ef0

Browse files
committed
refactor: use OsTask from OpenShock.Internal.Common
Our OsTask was a verbatim copy of the one in OpenShock.Internal.Common, which as of 1.1.0 also carries the CancellationToken parameter the DeviceConnection call sites rely on. Call sites are unchanged; only the import moves.
1 parent b80aba8 commit 5c00ef0

4 files changed

Lines changed: 3 additions & 27 deletions

File tree

‎LocalRelay/DeviceConnection.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
using OpenShock.SDK.CSharp.Utils;
1515
using OpenShock.Serialization.Deprecated.DoNotUse.V1;
1616
using Timer = System.Timers.Timer;
17+
using OpenShock.Internal.Common.Utils;
1718
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
1819

1920
namespace OpenShock.LocalRelay;

‎LocalRelay/LocalRelay.csproj‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<ItemGroup>
2323
<PackageReference Include="CircularBuffer" Version="1.4.0" />
2424
<PackageReference Include="OpenShock.Desktop.ModuleBase" Version="1.1.4" />
25+
<PackageReference Include="OpenShock.Internal.Common" Version="1.1.0" />
2526
<PackageReference Include="OpenShock.SDK.CSharp" Version="0.0.42" />
2627
<PackageReference Include="OpenShock.SDK.CSharp.Live" Version="0.0.42" />
2728
<PackageReference Include="OpenShock.Serialization.Flatbuffers" Version="2.1.0" />

‎LocalRelay/SerialPortClient.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using OpenShock.LocalRelay.Utils;
1212
using OpenShock.MinimalEvents;
1313
using OpenShock.SDK.CSharp.Utils;
14+
using OpenShock.Internal.Common.Utils;
1415

1516
namespace OpenShock.LocalRelay;
1617

‎LocalRelay/Utils/OsTask.cs‎

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

0 commit comments

Comments
 (0)