mirror of
https://github.com/bitwarden/server.git
synced 2025-06-06 19:20:33 -05:00
35 lines
974 B
C#
35 lines
974 B
C#
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.IdentityModel.Logging;
|
|
|
|
namespace Bit.EventsProcessor
|
|
{
|
|
public class Startup
|
|
{
|
|
public Startup(IHostingEnvironment env, IConfiguration configuration)
|
|
{
|
|
Configuration = configuration;
|
|
Environment = env;
|
|
}
|
|
|
|
public IConfiguration Configuration { get; }
|
|
public IHostingEnvironment Environment { get; set; }
|
|
|
|
public void ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddOptions();
|
|
services.AddHostedService<AzureQueueHostedService>();
|
|
}
|
|
|
|
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
|
|
{
|
|
if(env.IsDevelopment())
|
|
{
|
|
IdentityModelEventSource.ShowPII = true;
|
|
}
|
|
}
|
|
}
|
|
}
|