Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
protected override IMvcCoreBuilder ConfigureMvc(IMvcCoreBuilder builder) { return(builder.AddCacheTagHelper() .AddCookieTempDataProvider() .AddDataAnnotations() .AddModelValidator() .AddRazorPages() .AddRazorViewEngine() .AddViews() .AddMvcOptions( options => { var policy = ScopePolicy.Create(this.Options.ApiScope); options.Filters.Add(new AuthorizeFilter(policy)); })); }