Update to NetCore 3.1, added Kestrel for REST api and few basic endpoints.
This commit is contained in:
@@ -16,7 +16,7 @@ using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ASS.Server.Services
|
||||
{
|
||||
class ByondService : Byond.ByondBase
|
||||
public class ByondService : Byond.ByondBase
|
||||
{
|
||||
const string BYOND_LATEST_URL = "https://secure.byond.com/download/build/LATEST/";
|
||||
const string BYOND_DOWNLOAD_URL = "https://secure.byond.com/download/build/";
|
||||
|
@@ -14,6 +14,7 @@ namespace ASS.Server.Services
|
||||
IServiceProvider _sp;
|
||||
ILogger logger;
|
||||
IConfiguration config;
|
||||
public bool IsInitilized { get; private set; } = false;
|
||||
|
||||
public GrpcService(IServiceProvider sp) : this(sp.GetRequiredService<IConfiguration>())
|
||||
{
|
||||
@@ -29,6 +30,7 @@ namespace ASS.Server.Services
|
||||
|
||||
public void Initialize()
|
||||
{
|
||||
IsInitilized = true;
|
||||
Services.Add(API.Instance.BindService(_sp.GetRequiredService<InstanceService>()));
|
||||
Start();
|
||||
logger.LogInformation($"gRPC server listening on {config["GRPC:Host"]}:{config["GRPC:Port"]}");
|
||||
|
Reference in New Issue
Block a user