-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added unit tests for Ketsrel support
- Loading branch information
1 parent
93d1878
commit 03d1d85
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
test/SuperSocket.Tests/KestralConnectionHostConfigurator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Net.Sockets; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.Hosting; | ||
using Microsoft.Extensions.Logging; | ||
using SuperSocket; | ||
using SuperSocket.Connection; | ||
using SuperSocket.Server.Abstractions; | ||
using SuperSocket.Server.Abstractions.Host; | ||
using SuperSocket.Client; | ||
using SuperSocket.ProtoBase; | ||
using SuperSocket.Kestrel; | ||
|
||
namespace SuperSocket.Tests | ||
{ | ||
public class KestralConnectionHostConfigurator : RegularHostConfigurator | ||
{ | ||
public KestralConnectionHostConfigurator() | ||
: base() | ||
{ | ||
} | ||
|
||
public override void Configure(ISuperSocketHostBuilder hostBuilder) | ||
{ | ||
base.Configure(hostBuilder); | ||
hostBuilder.UseKestrelPipeConnection(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters