Skip to content

Commit 47db2de

Browse files
committed
Add logo image.
1 parent 6a19222 commit 47db2de

File tree

11 files changed

+69
-7
lines changed

11 files changed

+69
-7
lines changed

QpTestClient/QpTestClient.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="NJsonSchema.CodeGeneration.CSharp" Version="10.6.6" />
31+
<PackageReference Include="NJsonSchema.CodeGeneration.CSharp" Version="10.6.10" />
3232
<PackageReference Include="Quick.Xml" Version="1.0.0" />
3333
</ItemGroup>
3434

Quick.Protocol.AllClients/Quick.Protocol.AllClients.csproj

+9
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,17 @@ TCP: ConnectionUriParser.Parse("tcp://127.0.0.1:3001");
2020
Pipe: ConnectionUriParser.Parse("pipe://./Quick.Protocol");
2121
WebSocket: ConnectionUriParser.Parse("ws://127.0.0.1:3001/qp");
2222
SerialPort: ConnectionUriParser.Parse("serialport://COM1");</Description>
23+
<PackageIcon>logo.png</PackageIcon>
24+
<PackageTags>QuickProtocol</PackageTags>
2325
</PropertyGroup>
2426

27+
<ItemGroup>
28+
<None Include="..\logo.png">
29+
<Pack>True</Pack>
30+
<PackagePath>\</PackagePath>
31+
</None>
32+
</ItemGroup>
33+
2534
<ItemGroup>
2635
<ProjectReference Include="..\Quick.Protocol.Pipeline\Quick.Protocol.Pipeline.csproj" />
2736
<ProjectReference Include="..\Quick.Protocol.SerialPort\Quick.Protocol.SerialPort.csproj" />

Quick.Protocol.Pipeline/Quick.Protocol.Pipeline.csproj

+9
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@
1010
<Company />
1111
<Product>Quick.Protocol</Product>
1212
<Description>Pipeline support for Quick.Protocol</Description>
13+
<PackageIcon>logo.png</PackageIcon>
14+
<PackageTags>QuickProtocol</PackageTags>
1315
</PropertyGroup>
1416

17+
<ItemGroup>
18+
<None Include="..\logo.png">
19+
<Pack>True</Pack>
20+
<PackagePath>\</PackagePath>
21+
</None>
22+
</ItemGroup>
23+
1524
<ItemGroup>
1625
<ProjectReference Include="..\Quick.Protocol\Quick.Protocol.csproj" />
1726
</ItemGroup>

Quick.Protocol.SerialPort/Quick.Protocol.SerialPort.csproj

+9
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@
1010
<Company />
1111
<Product>Quick.Protocol</Product>
1212
<Description>SerialPort support for Quick.Protocol</Description>
13+
<PackageIcon>logo.png</PackageIcon>
14+
<PackageTags>QuickProtocol</PackageTags>
1315
</PropertyGroup>
1416

17+
<ItemGroup>
18+
<None Include="..\logo.png">
19+
<Pack>True</Pack>
20+
<PackagePath>\</PackagePath>
21+
</None>
22+
</ItemGroup>
23+
1524
<ItemGroup>
1625
<ProjectReference Include="..\Quick.Protocol\Quick.Protocol.csproj" />
1726
</ItemGroup>

Quick.Protocol.Tcp/Quick.Protocol.Tcp.csproj

+9
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@
1010
<Company />
1111
<Product>Quick.Protocol</Product>
1212
<Description>TCP support for Quick.Protocol</Description>
13+
<PackageIcon>logo.png</PackageIcon>
14+
<PackageTags>QuickProtocol</PackageTags>
1315
</PropertyGroup>
1416

17+
<ItemGroup>
18+
<None Include="..\logo.png">
19+
<Pack>True</Pack>
20+
<PackagePath>\</PackagePath>
21+
</None>
22+
</ItemGroup>
23+
1524
<ItemGroup>
1625
<ProjectReference Include="..\Quick.Protocol\Quick.Protocol.csproj" />
1726
</ItemGroup>

Quick.Protocol.WebSocket.Client/Quick.Protocol.WebSocket.Client.csproj

+9
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@
1010
<Company />
1111
<Product>Quick.Protocol</Product>
1212
<Description>WebSocket client support for Quick.Protocol</Description>
13+
<PackageIcon>logo.png</PackageIcon>
14+
<PackageTags>QuickProtocol</PackageTags>
1315
</PropertyGroup>
1416

17+
<ItemGroup>
18+
<None Include="..\logo.png">
19+
<Pack>True</Pack>
20+
<PackagePath>\</PackagePath>
21+
</None>
22+
</ItemGroup>
23+
1524
<ItemGroup>
1625
<ProjectReference Include="..\Quick.Protocol\Quick.Protocol.csproj" />
1726
</ItemGroup>

Quick.Protocol.WebSocket.Server.AspNetCore/Quick.Protocol.WebSocket.Server.AspNetCore.csproj

+9
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@
1010
<Company />
1111
<Product>Quick.Protocol</Product>
1212
<Description>WebSocket server support for Quick.Protocol(Use ASP.NET Core)</Description>
13+
<PackageIcon>logo.png</PackageIcon>
14+
<PackageTags>QuickProtocol</PackageTags>
1315
</PropertyGroup>
1416

17+
<ItemGroup>
18+
<None Include="..\logo.png">
19+
<Pack>True</Pack>
20+
<PackagePath>\</PackagePath>
21+
</None>
22+
</ItemGroup>
23+
1524
<ItemGroup>
1625
<PackageReference Include="Microsoft.AspNetCore.WebSockets" Version="2.2.1" />
1726
</ItemGroup>

Quick.Protocol/QpServer.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public abstract class QpServer
1212
{
1313
private CancellationTokenSource cts;
1414
private QpServerOptions options;
15-
15+
1616
private List<QpServerChannel> channelList = new List<QpServerChannel>();
1717

1818
/// <summary>
@@ -34,7 +34,7 @@ public abstract class QpServer
3434
/// 通道连接断开时
3535
/// </summary>
3636
public event EventHandler<QpServerChannel> ChannelDisconnected;
37-
37+
3838
/// <summary>
3939
/// 通道认证超时
4040
/// </summary>
@@ -114,7 +114,7 @@ private void beginAccept(CancellationToken token)
114114

115115
public virtual void Stop()
116116
{
117-
cts.Cancel();
117+
cts?.Cancel();
118118
cts = null;
119119
}
120120
}

Quick.Protocol/QpServerChannel.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ public void Stop()
145145
{
146146
try
147147
{
148-
if (cts != null && !cts.IsCancellationRequested)
149-
cts.Cancel();
148+
cts?.Cancel();
150149
stream?.Close();
151150
stream?.Dispose();
152151
}

Quick.Protocol/Quick.Protocol.csproj

+10-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,20 @@
1010
<Version>2.1.4</Version>
1111
<Company />
1212
<Description>A simple protocol for TCP,Pipeline,SerialPort,WebSocket.</Description>
13+
<PackageIcon>logo.png</PackageIcon>
14+
<PackageTags>QuickProtocol</PackageTags>
1315
</PropertyGroup>
1416

17+
<ItemGroup>
18+
<None Include="..\logo.png">
19+
<Pack>True</Pack>
20+
<PackagePath>\</PackagePath>
21+
</None>
22+
</ItemGroup>
23+
1524
<ItemGroup>
1625
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
17-
<PackageReference Include="NJsonSchema" Version="10.6.6" />
26+
<PackageReference Include="NJsonSchema" Version="10.6.10" />
1827
</ItemGroup>
1928

2029
</Project>

logo.png

32.8 KB
Loading

0 commit comments

Comments
 (0)