Skip to content

Commit

Permalink
fixed samples
Browse files Browse the repository at this point in the history
  • Loading branch information
kerryjiang committed Mar 11, 2024
1 parent 06e4cac commit cda12e1
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 4 deletions.
3 changes: 3 additions & 0 deletions samples/AspNetSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Hosting;
using SuperSocket;
using SuperSocket.Server;
using SuperSocket.Server.Host;
using SuperSocket.Server.Abstractions.Session;
using SuperSocket.ProtoBase;
using System.Text;

Expand Down
1 change: 1 addition & 0 deletions samples/CommandServer/ADD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Text;
using System.Threading.Tasks;
using SuperSocket;
using SuperSocket.Server.Abstractions.Session;
using SuperSocket.Command;
using SuperSocket.ProtoBase;

Expand Down
1 change: 1 addition & 0 deletions samples/CommandServer/MULT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Text;
using System.Threading.Tasks;
using SuperSocket;
using SuperSocket.Server.Abstractions.Session;
using SuperSocket.Command;
using SuperSocket.ProtoBase;

Expand Down
3 changes: 3 additions & 0 deletions samples/CommandServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using SuperSocket;
using SuperSocket.Server;
using SuperSocket.Server.Host;
using SuperSocket.Server.Abstractions.Session;
using SuperSocket.Command;
using SuperSocket.ProtoBase;

Expand Down
1 change: 1 addition & 0 deletions samples/CommandServer/SUB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Text;
using System.Threading.Tasks;
using SuperSocket;
using SuperSocket.Server.Abstractions.Session;
using SuperSocket.Command;
using SuperSocket.ProtoBase;

Expand Down
1 change: 1 addition & 0 deletions samples/ConfigSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using SuperSocket;
using SuperSocket.Server.Host;
using SuperSocket.ProtoBase;

namespace ConfigSample
Expand Down
3 changes: 3 additions & 0 deletions samples/CustomProtocol/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using SuperSocket;
using SuperSocket.Server;
using SuperSocket.Server.Abstractions;
using SuperSocket.Server.Host;
using SuperSocket.ProtoBase;

namespace CustomProtocol
Expand Down
3 changes: 3 additions & 0 deletions samples/EchoServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using SuperSocket;
using SuperSocket.Server;
using SuperSocket.Server.Abstractions;
using SuperSocket.Server.Host;
using SuperSocket.ProtoBase;

namespace EchoServer
Expand Down
5 changes: 5 additions & 0 deletions samples/WebSocketPushServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
using Microsoft.Extensions.Logging;
using SuperSocket;
using SuperSocket.Server;
using SuperSocket.Server.Abstractions;
using SuperSocket.Server.Abstractions.Host;
using SuperSocket.Server.Abstractions.Session;
using SuperSocket.Server.Abstractions.Middleware;
using SuperSocket.Server.Host;
using SuperSocket.WebSocket.Server;

namespace WebSocketPushServer
Expand Down
2 changes: 1 addition & 1 deletion samples/WebSocketPushServer/PushSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using SuperSocket;
using SuperSocket.Server;
using SuperSocket.WebSocket.Server;
using SuperSocket.SessionContainer;
using SuperSocket.Server.Abstractions.Session;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.DependencyInjection;

Expand Down
4 changes: 3 additions & 1 deletion samples/WebSocketPushServer/ServerPushMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
using System.Linq;
using SuperSocket;
using SuperSocket.Server;
using SuperSocket.Server.Abstractions;
using SuperSocket.Server.Abstractions.Session;
using SuperSocket.Server.Abstractions.Middleware;
using SuperSocket.WebSocket.Server;
using SuperSocket.SessionContainer;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.DependencyInjection;

Expand Down
3 changes: 1 addition & 2 deletions samples/WebSocketPushServer/WebSocketPushServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
<TargetFrameworks>$(SamplesTargetFrameworks)</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\SuperSocket.WebSocket.Server\SuperSocket.WebSocket.Server.csproj" />
<ProjectReference Include="..\..\src\SuperSocket.SessionContainer\SuperSocket.SessionContainer.csproj" />
<ProjectReference Include="..\..\src\SuperSocket.WebSocket.Server\SuperSocket.WebSocket.Server.csproj" />
</ItemGroup>
<ItemGroup>
<Content Include="appsettings.json">
Expand Down

0 comments on commit cda12e1

Please sign in to comment.