Fixed the constraint issue with Metadata and ensure we log parameters on development modes. (#273)
This commit is contained in:
parent
ee3cb9ede8
commit
f0f74e867e
4 changed files with 11 additions and 3 deletions
|
@ -24,16 +24,18 @@ namespace API
|
|||
public class Startup
|
||||
{
|
||||
private readonly IConfiguration _config;
|
||||
private readonly IWebHostEnvironment _env;
|
||||
|
||||
public Startup(IConfiguration config)
|
||||
public Startup(IConfiguration config, IWebHostEnvironment env)
|
||||
{
|
||||
_config = config;
|
||||
_env = env;
|
||||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to add services to the container.
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddApplicationServices(_config);
|
||||
services.AddApplicationServices(_config, _env);
|
||||
services.AddControllers();
|
||||
services.Configure<ForwardedHeadersOptions>(options =>
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue