ASPNETCORE ConfigureServices не запускается
Я следую документу Microsoft для реализации авторизации на основе политик в моем веб-сервисе, но функция "ConfigureServices" не запускается. Пожалуйста, дайте мне знать, если мне чего-то не хватает.
Startup.cs
using Microsoft.Owin;
using Owin;
using Microsoft.AspNetCore.Authorization;
using Microsoft.Extensions.DependencyInjection;
[assembly: OwinStartupAttribute(typeof(WebApplication1.Startup))]
namespace WebApplication1
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ConfigureAuth(app);
}
public void ConfigureServices(IServiceCollection services)
{
//Some codes here...
}
}
}