1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

simplify secrets in startup via csproj tools

This commit is contained in:
Kyle Spearrin
2017-10-19 00:08:09 -04:00
parent 8b07244c95
commit 5ee0b4a9da
11 changed files with 40 additions and 26 deletions

View File

@ -16,17 +16,12 @@ namespace Bit.Billing
{
public class Startup
{
public Startup(IHostingEnvironment env)
public Startup(IConfiguration configuration)
{
var builder = new ConfigurationBuilder();
if(env.IsDevelopment())
{
builder.AddUserSecrets("bitwarden-Billing");
}
Configuration = builder.Build();
Configuration = configuration;
}
public IConfigurationRoot Configuration { get; }
public IConfiguration Configuration { get; }
public void ConfigureServices(IServiceCollection services)
{