|
|
|
|
@ -0,0 +1,31 @@ |
|
|
|
|
// 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.DependencyInjection; |
|
|
|
|
|
|
|
|
|
namespace GBase.Server |
|
|
|
|
{ |
|
|
|
|
public class Startup |
|
|
|
|
{ |
|
|
|
|
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(), $"/{IGBaseServerSettings.Endpoint}"); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |