diff --git a/GBase.Client/GBaseClient.cs b/GBase.Client/GBaseClient.cs index 1f61ca2..d4cc846 100644 --- a/GBase.Client/GBaseClient.cs +++ b/GBase.Client/GBaseClient.cs @@ -13,9 +13,9 @@ namespace GBase.Client { public GBaseClient(IGBaseClientSettings settings) { - GBase = new GBaseService(settings.ServerProtocolGBaseEndpointAddress); - GBaseTable = new GBaseTableService(settings.ServerProtocolGBaseTableEndpointAddress); - GBaseEntry = new GBaseEntryService(settings.ServerProtocolGBaseEntryEndpointAddress); + GBase = new GBaseService(settings.Protocol, settings.ServerProtocolGBaseEndpointAddress); + GBaseTable = new GBaseTableService(settings.Protocol, settings.ServerProtocolGBaseTableEndpointAddress); + GBaseEntry = new GBaseEntryService(settings.Protocol, settings.ServerProtocolGBaseEntryEndpointAddress); } diff --git a/GBase.Client/Services/GBaseEntryService.cs b/GBase.Client/Services/GBaseEntryService.cs index 918d3ca..77b643f 100644 --- a/GBase.Client/Services/GBaseEntryService.cs +++ b/GBase.Client/Services/GBaseEntryService.cs @@ -2,14 +2,15 @@ // Created: 2020-02-11 // Copyright(c) 2020 SimonG. All Rights Reserved. +using GBase.Api.Communication; using GBase.Api.Services; namespace GBase.Client.Services { public class GBaseEntryService : Service, IGBaseEntryService { - public GBaseEntryService(string endpoint) - : base(endpoint) + public GBaseEntryService(ServerProtocol serverProtocol, string endpoint) + : base(serverProtocol, endpoint) { } diff --git a/GBase.Client/Services/GBaseService.cs b/GBase.Client/Services/GBaseService.cs index 8c99df3..531041d 100644 --- a/GBase.Client/Services/GBaseService.cs +++ b/GBase.Client/Services/GBaseService.cs @@ -2,14 +2,15 @@ // Created: 2020-02-11 // Copyright(c) 2020 SimonG. All Rights Reserved. +using GBase.Api.Communication; using GBase.Api.Services; namespace GBase.Client.Services { public class GBaseService : Service, IGBaseService { - public GBaseService(string endpoint) - : base(endpoint) + public GBaseService(ServerProtocol serverProtocol, string endpoint) + : base(serverProtocol, endpoint) { } diff --git a/GBase.Client/Services/GBaseTableService.cs b/GBase.Client/Services/GBaseTableService.cs index 3bf5d40..d144276 100644 --- a/GBase.Client/Services/GBaseTableService.cs +++ b/GBase.Client/Services/GBaseTableService.cs @@ -2,14 +2,15 @@ // Created: 2020-02-11 // Copyright(c) 2020 SimonG. All Rights Reserved. +using GBase.Api.Communication; using GBase.Api.Services; namespace GBase.Client.Services { public class GBaseTableService : Service, IGBaseTableService { - public GBaseTableService(string endpoint) - : base(endpoint) + public GBaseTableService(ServerProtocol serverProtocol, string endpoint) + : base(serverProtocol, endpoint) { }