diff --git a/samples/MicroserviceDemo/MicroserviceDemo.PermissionService/MicroserviceDemo.PermissionService.csproj b/samples/MicroserviceDemo/MicroserviceDemo.PermissionService/MicroserviceDemo.PermissionService.csproj index 965e3b7401..5050360270 100644 --- a/samples/MicroserviceDemo/MicroserviceDemo.PermissionService/MicroserviceDemo.PermissionService.csproj +++ b/samples/MicroserviceDemo/MicroserviceDemo.PermissionService/MicroserviceDemo.PermissionService.csproj @@ -4,10 +4,6 @@ netcoreapp2.0 - - - - diff --git a/samples/MicroserviceDemo/MicroserviceDemo.PermissionService/Program.cs b/samples/MicroserviceDemo/MicroserviceDemo.PermissionService/Program.cs index 98691c4b28..fc0174669a 100644 --- a/samples/MicroserviceDemo/MicroserviceDemo.PermissionService/Program.cs +++ b/samples/MicroserviceDemo/MicroserviceDemo.PermissionService/Program.cs @@ -1,12 +1,5 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore; +using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; namespace MicroserviceDemo.PermissionService { diff --git a/samples/MicroserviceDemo/MicroserviceDemo.PermissionService/Startup.cs b/samples/MicroserviceDemo/MicroserviceDemo.PermissionService/Startup.cs index 90fa5c7c6a..de3b9864c3 100644 --- a/samples/MicroserviceDemo/MicroserviceDemo.PermissionService/Startup.cs +++ b/samples/MicroserviceDemo/MicroserviceDemo.PermissionService/Startup.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; @@ -11,23 +7,15 @@ namespace MicroserviceDemo.PermissionService { public class Startup { - // This method gets called by the runtime. Use this method to add services to the container. - // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 public void ConfigureServices(IServiceCollection services) { } - // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { - if (env.IsDevelopment()) - { - app.UseDeveloperExceptionPage(); - } - app.Run(async (context) => { - await context.Response.WriteAsync("Hello World!"); + await context.Response.WriteAsync("Permissions microservice!"); }); } } diff --git a/samples/MicroserviceDemo/MicroserviceDemo.TenancyService/MicroserviceDemo.TenancyService.csproj b/samples/MicroserviceDemo/MicroserviceDemo.TenancyService/MicroserviceDemo.TenancyService.csproj index 965e3b7401..5050360270 100644 --- a/samples/MicroserviceDemo/MicroserviceDemo.TenancyService/MicroserviceDemo.TenancyService.csproj +++ b/samples/MicroserviceDemo/MicroserviceDemo.TenancyService/MicroserviceDemo.TenancyService.csproj @@ -4,10 +4,6 @@ netcoreapp2.0 - - - - diff --git a/samples/MicroserviceDemo/MicroserviceDemo.TenancyService/Program.cs b/samples/MicroserviceDemo/MicroserviceDemo.TenancyService/Program.cs index 83d54c5534..955fb8e245 100644 --- a/samples/MicroserviceDemo/MicroserviceDemo.TenancyService/Program.cs +++ b/samples/MicroserviceDemo/MicroserviceDemo.TenancyService/Program.cs @@ -1,12 +1,5 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore; +using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; namespace MicroserviceDemo.TenancyService { diff --git a/samples/MicroserviceDemo/MicroserviceDemo.TenancyService/Startup.cs b/samples/MicroserviceDemo/MicroserviceDemo.TenancyService/Startup.cs index 3333b1d3dd..7d451047fc 100644 --- a/samples/MicroserviceDemo/MicroserviceDemo.TenancyService/Startup.cs +++ b/samples/MicroserviceDemo/MicroserviceDemo.TenancyService/Startup.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; @@ -11,23 +7,15 @@ namespace MicroserviceDemo.TenancyService { public class Startup { - // This method gets called by the runtime. Use this method to add services to the container. - // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 public void ConfigureServices(IServiceCollection services) { } - // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { - if (env.IsDevelopment()) - { - app.UseDeveloperExceptionPage(); - } - app.Run(async (context) => { - await context.Response.WriteAsync("Hello World!"); + await context.Response.WriteAsync("Tenancy microservice!"); }); } }