Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created April 17, 2019 01:56
Show Gist options
  • Save dcomartin/c5eac54e5755809dffab25784da74955 to your computer and use it in GitHub Desktop.
Save dcomartin/c5eac54e5755809dffab25784da74955 to your computer and use it in GitHub Desktop.
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
namespace Aws.DataProtection.Demo
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddDataProtection()
.PersistKeysToAWSSystemsManager("/Demo/DataProtection");
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.Run(async (context) =>
{
await context.Response.WriteAsync("Hello World!");
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment