A database based on .net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
821 B

// 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; }
public string ServerProtocolEndpointAddress => @$"{Protocol.GetProtocolString()}{IpAddress}:{Port}{Endpoint}";
}
}