- move serverProtocol to GBase.Api

- inherit ICommunicationSettings base interface
pull/26/head
Simon Gockner 6 years ago
parent 5ec67ba154
commit fa8ef3d286
  1. 2
      GBase.Api/Communication/ServerProtocol.cs
  2. 1
      GBase.Server/GBase.Server.csproj
  3. 1
      GBase.Server/GBaseServerSettings.cs
  4. 9
      GBase.Server/Interfaces/IGBaseServerSettings.cs
  5. 1
      GBase.Server/Program.cs

@ -4,7 +4,7 @@
using System; using System;
namespace GBase.Server namespace GBase.Api.Communication
{ {
public enum ServerProtocol //TODO: Decide which protocols should be usable public enum ServerProtocol //TODO: Decide which protocols should be usable
{ {

@ -12,6 +12,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\GBase.Api\GBase.Api.csproj" />
<ProjectReference Include="..\GBase.Logging\GBase.Logging.csproj" /> <ProjectReference Include="..\GBase.Logging\GBase.Logging.csproj" />
</ItemGroup> </ItemGroup>

@ -6,6 +6,7 @@ using System;
using System.IO; using System.IO;
using System.Net; using System.Net;
using System.Threading.Tasks; using System.Threading.Tasks;
using GBase.Api.Communication;
using GBase.Logging; using GBase.Logging;
using GBase.Server.Exceptions; using GBase.Server.Exceptions;
using GBase.Server.Interfaces; using GBase.Server.Interfaces;

@ -2,18 +2,13 @@
// Created: 2020-02-08 // Created: 2020-02-08
// Copyright(c) 2020 SimonG. All Rights Reserved. // Copyright(c) 2020 SimonG. All Rights Reserved.
using System.Net;
using System.Threading.Tasks; using System.Threading.Tasks;
using GBase.Api.Communication;
namespace GBase.Server.Interfaces namespace GBase.Server.Interfaces
{ {
public interface IGBaseServerSettings public interface IGBaseServerSettings : ICommunicationSettings
{ {
ServerProtocol Protocol { get; }
IPAddress IpAddress { get; }
int Port { get; }
string Endpoint { get; }
string LogFilePath { get; } string LogFilePath { get; }
string LogFileName { get; } string LogFileName { get; }

@ -4,6 +4,7 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using GBase.Api.Communication;
using GBase.Logging; using GBase.Logging;
using GBase.Logging.Interfaces; using GBase.Logging.Interfaces;
using GBase.Server.Interfaces; using GBase.Server.Interfaces;

Loading…
Cancel
Save