- pass serviceProtocol from clientSettings

pull/26/head
Simon Gockner 6 years ago
parent ef569cf9c7
commit 70ed41ed54
  1. 6
      GBase.Client/GBaseClient.cs
  2. 5
      GBase.Client/Services/GBaseEntryService.cs
  3. 5
      GBase.Client/Services/GBaseService.cs
  4. 5
      GBase.Client/Services/GBaseTableService.cs

@ -13,9 +13,9 @@ namespace GBase.Client
{ {
public GBaseClient(IGBaseClientSettings settings) public GBaseClient(IGBaseClientSettings settings)
{ {
GBase = new GBaseService(settings.ServerProtocolGBaseEndpointAddress); GBase = new GBaseService(settings.Protocol, settings.ServerProtocolGBaseEndpointAddress);
GBaseTable = new GBaseTableService(settings.ServerProtocolGBaseTableEndpointAddress); GBaseTable = new GBaseTableService(settings.Protocol, settings.ServerProtocolGBaseTableEndpointAddress);
GBaseEntry = new GBaseEntryService(settings.ServerProtocolGBaseEntryEndpointAddress); GBaseEntry = new GBaseEntryService(settings.Protocol, settings.ServerProtocolGBaseEntryEndpointAddress);
} }

@ -2,14 +2,15 @@
// Created: 2020-02-11 // Created: 2020-02-11
// Copyright(c) 2020 SimonG. All Rights Reserved. // Copyright(c) 2020 SimonG. All Rights Reserved.
using GBase.Api.Communication;
using GBase.Api.Services; using GBase.Api.Services;
namespace GBase.Client.Services namespace GBase.Client.Services
{ {
public class GBaseEntryService : Service<IGBaseEntryService>, IGBaseEntryService public class GBaseEntryService : Service<IGBaseEntryService>, IGBaseEntryService
{ {
public GBaseEntryService(string endpoint) public GBaseEntryService(ServerProtocol serverProtocol, string endpoint)
: base(endpoint) : base(serverProtocol, endpoint)
{ {
} }

@ -2,14 +2,15 @@
// Created: 2020-02-11 // Created: 2020-02-11
// Copyright(c) 2020 SimonG. All Rights Reserved. // Copyright(c) 2020 SimonG. All Rights Reserved.
using GBase.Api.Communication;
using GBase.Api.Services; using GBase.Api.Services;
namespace GBase.Client.Services namespace GBase.Client.Services
{ {
public class GBaseService : Service<IGBaseService>, IGBaseService public class GBaseService : Service<IGBaseService>, IGBaseService
{ {
public GBaseService(string endpoint) public GBaseService(ServerProtocol serverProtocol, string endpoint)
: base(endpoint) : base(serverProtocol, endpoint)
{ {
} }

@ -2,14 +2,15 @@
// Created: 2020-02-11 // Created: 2020-02-11
// Copyright(c) 2020 SimonG. All Rights Reserved. // Copyright(c) 2020 SimonG. All Rights Reserved.
using GBase.Api.Communication;
using GBase.Api.Services; using GBase.Api.Services;
namespace GBase.Client.Services namespace GBase.Client.Services
{ {
public class GBaseTableService : Service<IGBaseTableService>, IGBaseTableService public class GBaseTableService : Service<IGBaseTableService>, IGBaseTableService
{ {
public GBaseTableService(string endpoint) public GBaseTableService(ServerProtocol serverProtocol, string endpoint)
: base(endpoint) : base(serverProtocol, endpoint)
{ {
} }

Loading…
Cancel
Save