You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
// Author: Simon Gockner
|
|
// Created: 2020-02-08
|
|
// Copyright(c) 2020 SimonG. All Rights Reserved.
|
|
|
|
using CoreWCF;
|
|
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();
|
|
}
|
|
|
|
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
|
|
{
|
|
app.UseServiceModel(builder =>
|
|
{
|
|
//TODO: Add needed service once it is implemented
|
|
//builder.AddService<>();
|
|
//builder.AddServiceEndpoint<>(new BasicHttpBinding(), _configuration[GBaseServerSettings.ENDPOINT_STARTUP_CONFIGURATION_PREFIX]);
|
|
});
|
|
}
|
|
}
|
|
} |