I'm unable to trigger 'Configuration' method in my web api core, but i'm able to trigger 'Startup' method. What could be the problem? Please see my code below:
public class Startup
{
public IConfiguration Config { get; }
//able to trigger this method
public Startup(IConfiguration configuration)
{
Config = configuration;
}
//cant trigger this method
public void Configuration(IAppBuilder app)
{
ConfigureOAuth(app);
}
//able to trigger this method
public void ConfigureServices(IServiceCollection services)
{
}
//able to trigger this method
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
}
}