|
|
|
|
@ -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<GBaseService>(); |
|
|
|
|
builder.AddServiceEndpoint<GBaseService, IGBaseService>(new BasicHttpBinding(), _configuration[GBaseServerSettings.GBASE_ENDPOINT_STARTUP_CONFIGURATION_PREFIX]); |
|
|
|
|
|
|
|
|
|
builder.AddService<GBaseTableService>(); |
|
|
|
|
builder.AddServiceEndpoint<GBaseTableService, IGBaseTableService>(new BasicHttpBinding(), _configuration[GBaseServerSettings.GBASE_TABLE_ENDPOINT_STARTUP_CONFIGURATION_PREFIX]); |
|
|
|
|
|
|
|
|
|
builder.AddService<GBaseEntryService>(); |
|
|
|
|
builder.AddServiceEndpoint<GBaseEntryService, IGBaseEntryService>(new BasicHttpBinding(), _configuration[GBaseServerSettings.GBASE_ENTRY_ENDPOINT_STARTUP_CONFIGURATION_PREFIX]); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|