diff --git a/GBase.Api/GBase.Api.csproj b/GBase.Api/GBase.Api.csproj
index f51c9c8..d5f4330 100644
--- a/GBase.Api/GBase.Api.csproj
+++ b/GBase.Api/GBase.Api.csproj
@@ -4,4 +4,8 @@
netstandard2.1
+
+
+
+
diff --git a/GBase.Api/Services/IGBaseEntryService.cs b/GBase.Api/Services/IGBaseEntryService.cs
new file mode 100644
index 0000000..ea9a501
--- /dev/null
+++ b/GBase.Api/Services/IGBaseEntryService.cs
@@ -0,0 +1,14 @@
+// Author: Gockner, Simon
+// Created: 2020-02-10
+// Copyright(c) 2020 SimonG. All Rights Reserved.
+
+using System.ServiceModel;
+
+namespace GBase.Api.Services
+{
+ [ServiceContract]
+ public interface IGBaseEntryService //TODO: Add OperationContracts for all operations this service has to do
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/GBase.Api/Services/IGBaseService.cs b/GBase.Api/Services/IGBaseService.cs
new file mode 100644
index 0000000..3796122
--- /dev/null
+++ b/GBase.Api/Services/IGBaseService.cs
@@ -0,0 +1,18 @@
+// Author: Gockner, Simon
+// Created: 2020-02-10
+// Copyright(c) 2020 SimonG. All Rights Reserved.
+
+using System.ServiceModel;
+
+namespace GBase.Api.Services
+{
+ [ServiceContract]
+ public interface IGBaseService //TODO: Add OperationContracts for all operations this service has to do
+ {
+ [OperationContract]
+ bool AddTable();
+
+ [OperationContract]
+ bool RemoveTable();
+ }
+}
\ No newline at end of file
diff --git a/GBase.Api/Services/IGBaseTableService.cs b/GBase.Api/Services/IGBaseTableService.cs
new file mode 100644
index 0000000..29c0e25
--- /dev/null
+++ b/GBase.Api/Services/IGBaseTableService.cs
@@ -0,0 +1,14 @@
+// Author: Gockner, Simon
+// Created: 2020-02-10
+// Copyright(c) 2020 SimonG. All Rights Reserved.
+
+using System.ServiceModel;
+
+namespace GBase.Api.Services
+{
+ [ServiceContract]
+ public interface IGBaseTableService //TODO: Add OperationContracts for all operations this service has to do
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/GBase.Server/Services/GBaseEntryService.cs b/GBase.Server/Services/GBaseEntryService.cs
new file mode 100644
index 0000000..9b0a9bc
--- /dev/null
+++ b/GBase.Server/Services/GBaseEntryService.cs
@@ -0,0 +1,13 @@
+// Author: Gockner, Simon
+// Created: 2020-02-10
+// Copyright(c) 2020 SimonG. All Rights Reserved.
+
+using GBase.Api.Services;
+
+namespace GBase.Server.Services
+{
+ public class GBaseEntryService : IGBaseEntryService
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/GBase.Server/Services/GBaseService.cs b/GBase.Server/Services/GBaseService.cs
new file mode 100644
index 0000000..3d636a2
--- /dev/null
+++ b/GBase.Server/Services/GBaseService.cs
@@ -0,0 +1,21 @@
+// Author: Gockner, Simon
+// Created: 2020-02-10
+// Copyright(c) 2020 SimonG. All Rights Reserved.
+
+using GBase.Api.Services;
+
+namespace GBase.Server.Services
+{
+ public class GBaseService : IGBaseService
+ {
+ public bool AddTable()
+ {
+ throw new System.NotImplementedException();
+ }
+
+ public bool RemoveTable()
+ {
+ throw new System.NotImplementedException();
+ }
+ }
+}
\ No newline at end of file
diff --git a/GBase.Server/Services/GBaseTableService.cs b/GBase.Server/Services/GBaseTableService.cs
new file mode 100644
index 0000000..c6d27e0
--- /dev/null
+++ b/GBase.Server/Services/GBaseTableService.cs
@@ -0,0 +1,13 @@
+// Author: Gockner, Simon
+// Created: 2020-02-10
+// Copyright(c) 2020 SimonG. All Rights Reserved.
+
+using GBase.Api.Services;
+
+namespace GBase.Server.Services
+{
+ public class GBaseTableService : IGBaseTableService
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/GBase.Server/Startup.cs b/GBase.Server/Startup.cs
index 22c8827..b1166d1 100644
--- a/GBase.Server/Startup.cs
+++ b/GBase.Server/Startup.cs
@@ -4,7 +4,8 @@
using CoreWCF;
using CoreWCF.Configuration;
-using GBase.Server.Interfaces;
+using GBase.Api.Services;
+using GBase.Server.Services;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
@@ -30,9 +31,14 @@ namespace GBase.Server
{
app.UseServiceModel(builder =>
{
- //TODO: Add needed service once it is implemented
- //builder.AddService<>();
- //builder.AddServiceEndpoint<>(new BasicHttpBinding(), _configuration[GBaseServerSettings.ENDPOINT_STARTUP_CONFIGURATION_PREFIX]);
+ builder.AddService();
+ builder.AddServiceEndpoint(new BasicHttpBinding(), _configuration[GBaseServerSettings.GBASE_ENDPOINT_STARTUP_CONFIGURATION_PREFIX]);
+
+ builder.AddService();
+ builder.AddServiceEndpoint(new BasicHttpBinding(), _configuration[GBaseServerSettings.GBASE_TABLE_ENDPOINT_STARTUP_CONFIGURATION_PREFIX]);
+
+ builder.AddService();
+ builder.AddServiceEndpoint(new BasicHttpBinding(), _configuration[GBaseServerSettings.GBASE_ENTRY_ENDPOINT_STARTUP_CONFIGURATION_PREFIX]);
});
}
}