Skip to content

Commit 42ebc97

Browse files
committed
app - prepare to include build version in client/serve handshake state
1 parent db64070 commit 42ebc97

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

src/App/Common/Runtime/Common.asmdef

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "Common",
33
"rootNamespace": "Common",
44
"references": [
5+
"Shared.Boot",
56
"Shared.Log",
67
"Shared.System",
78
"Shared.Tp",

src/App/Common/Runtime/Common.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11+
<ProjectReference Include="..\..\..\Shared\Shared.Boot\Runtime\Shared.Boot.csproj" />
1112
<ProjectReference Include="..\..\..\Shared\Shared.Tp\Runtime\Shared.Tp.csproj" />
1213
</ItemGroup>
1314

src/App/Common/Runtime/Logic/ConnectState.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Buffers;
3+
using Shared.Boot.Version;
34
using Shared.Tp.Ext.Hand;
45
using Shared.Web;
56

@@ -23,10 +24,11 @@ IHandConnectState IHandStateProvider.Deserialize(ReadOnlySpan<byte> span)
2324
public class ConnectState : IHandConnectState
2425
{
2526
public string LinkId { get; set; } = string.Empty;
27+
public BuildVersion BuildVersion { get; set; } = new();
2628

2729
public ConnectState() {}
2830
public ConnectState(string linkId) => LinkId = linkId;
2931

30-
public override string ToString() => $"ConnectState({LinkId})"; //diagnostics only
32+
public override string ToString() => $"ConnectState({LinkId} {BuildVersion.ToShortInfo()})"; //diagnostics only
3133
}
3234
}

src/Shared/Shared.Tp/Runtime/Tp/Ext/Hand/HandLink.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace Shared.Tp.Ext.Hand
1818
/// TODO: speedup to gc-free on one buffer after changing link/receiver API
1919
/// TODO: reconnect support (possibly another wrapper)
2020
/// </summary>
21-
public partial class HandLink : ExtLink
21+
public class HandLink : ExtLink
2222
{
2323
private readonly HandApi _api = null!;
2424
private readonly ILoggerFactory _loggerFactory = null!;

0 commit comments

Comments
 (0)