- add GBaseClientSettings

pull/26/head
Simon Gockner 6 years ago
parent fa8ef3d286
commit eb31c0303d
  1. 4
      GBase.Client/GBase.Client.csproj
  2. 26
      GBase.Client/GBaseClientSettings.cs
  3. 13
      GBase.Client/Interfaces/IGBaseClientSettings.cs

@ -4,4 +4,8 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\GBase.Api\GBase.Api.csproj" />
</ItemGroup>
</Project>

@ -0,0 +1,26 @@
// Author: Gockner, Simon
// Created: 2020-02-10
// Copyright(c) 2020 SimonG. All Rights Reserved.
using System.Net;
using GBase.Api.Communication;
using GBase.Client.Interfaces;
namespace GBase.Client
{
public class GBaseClientSettings : IGBaseClientSettings
{
public GBaseClientSettings(ServerProtocol protocol, IPAddress ipAddress, int port, string endpoint)
{
Protocol = protocol;
IpAddress = ipAddress;
Port = port;
Endpoint = endpoint;
}
public ServerProtocol Protocol { get; }
public IPAddress IpAddress { get; }
public int Port { get; }
public string Endpoint { get; }
}
}

@ -0,0 +1,13 @@
// Author: Gockner, Simon
// Created: 2020-02-10
// Copyright(c) 2020 SimonG. All Rights Reserved.
using GBase.Api.Communication;
namespace GBase.Client.Interfaces
{
public interface IGBaseClientSettings : ICommunicationSettings
{
}
}
Loading…
Cancel
Save