Switches to Kestrel (#102)
This commit is contained in:
parent
70fddfebde
commit
2c0d97cd36
141 changed files with 1040 additions and 1679 deletions
23
Projects/Server/Network/ServerStartup.cs
Normal file
23
Projects/Server/Network/ServerStartup.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Network
|
||||
{
|
||||
public class ServerStartup
|
||||
{
|
||||
private readonly IMessagePumpService _messagePumpService;
|
||||
public ServerStartup(IMessagePumpService messagePumpService) => _messagePumpService = messagePumpService;
|
||||
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
}
|
||||
|
||||
public void Configure(IApplicationBuilder app)
|
||||
{
|
||||
// Run async?
|
||||
Task.Run(() => Core.RunEventLoop(_messagePumpService));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue