Browse Source

Clean microservice demo solution.

pull/216/head
Halil İbrahim Kalkan 9 years ago
parent
commit
53a0e2c1aa
  1. 4
      samples/MicroserviceDemo/MicroserviceDemo.PermissionService/MicroserviceDemo.PermissionService.csproj
  2. 9
      samples/MicroserviceDemo/MicroserviceDemo.PermissionService/Program.cs
  3. 16
      samples/MicroserviceDemo/MicroserviceDemo.PermissionService/Startup.cs
  4. 4
      samples/MicroserviceDemo/MicroserviceDemo.TenancyService/MicroserviceDemo.TenancyService.csproj
  5. 9
      samples/MicroserviceDemo/MicroserviceDemo.TenancyService/Program.cs
  6. 16
      samples/MicroserviceDemo/MicroserviceDemo.TenancyService/Startup.cs

4
samples/MicroserviceDemo/MicroserviceDemo.PermissionService/MicroserviceDemo.PermissionService.csproj

@ -4,10 +4,6 @@
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.5" />
</ItemGroup>

9
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
{

16
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!");
});
}
}

4
samples/MicroserviceDemo/MicroserviceDemo.TenancyService/MicroserviceDemo.TenancyService.csproj

@ -4,10 +4,6 @@
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.5" />
</ItemGroup>

9
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
{

16
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!");
});
}
}

Loading…
Cancel
Save