|
|
|
|
@ -7,12 +7,20 @@ using CoreWCF.Configuration; |
|
|
|
|
using GBase.Server.Interfaces; |
|
|
|
|
using Microsoft.AspNetCore.Builder; |
|
|
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
|
|
using Microsoft.Extensions.Configuration; |
|
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
|
|
|
|
namespace GBase.Server |
|
|
|
|
{ |
|
|
|
|
public class Startup |
|
|
|
|
{ |
|
|
|
|
private readonly IConfiguration _configuration; |
|
|
|
|
|
|
|
|
|
public Startup(IConfiguration configuration) |
|
|
|
|
{ |
|
|
|
|
_configuration = configuration; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void ConfigureServices(IServiceCollection services) |
|
|
|
|
{ |
|
|
|
|
services.AddServiceModelServices(); |
|
|
|
|
@ -24,7 +32,7 @@ namespace GBase.Server |
|
|
|
|
{ |
|
|
|
|
//TODO: Add needed service once it is implemented |
|
|
|
|
//builder.AddService<>(); |
|
|
|
|
//builder.AddServiceEndpoint<>(new BasicHttpBinding(), $"/{IGBaseServerSettings.Endpoint}"); |
|
|
|
|
//builder.AddServiceEndpoint<>(new BasicHttpBinding(), _configuration[GBaseServerSettings.ENDPOINT_STARTUP_CONFIGURATION_PREFIX]); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|