From a336e71a2ab3f39972cfcd4e83bebb6d7f9167b2 Mon Sep 17 00:00:00 2001 From: Simon G Date: Sun, 9 Feb 2020 00:34:14 +0100 Subject: [PATCH] - add startup class --- GBase.Server/Startup.cs | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 GBase.Server/Startup.cs diff --git a/GBase.Server/Startup.cs b/GBase.Server/Startup.cs new file mode 100644 index 0000000..5f4e814 --- /dev/null +++ b/GBase.Server/Startup.cs @@ -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}"); + }); + } + } +} \ No newline at end of file