Fixed logger injection

pull/5728/head
Halil İbrahim Kalkan 5 years ago
parent f8c9d7ddb9
commit 8c4ecf6af0

@ -19,7 +19,7 @@ namespace Volo.Abp.AspNetCore.Mvc.AntiForgery
IOptions<AntiforgeryOptions> antiforgeryOptions,
IOptions<AbpAntiForgeryOptions> abpAntiForgeryOptions,
IOptionsSnapshot<CookieAuthenticationOptions> namedOptionsAccessor,
ILogger logger)
ILogger<AbpValidateAntiforgeryTokenAuthorizationFilter> logger)
: base(antiforgery, antiforgeryOptions, abpAntiForgeryOptions, namedOptionsAccessor, logger)
{
_namedOptionsAccessor = namedOptionsAccessor;

@ -16,14 +16,14 @@ namespace Volo.Abp.AspNetCore.Mvc.AntiForgery
private readonly AntiforgeryOptions _antiforgeryOptions;
private readonly IOptionsSnapshot<CookieAuthenticationOptions> _namedOptionsAccessor;
private readonly AbpAntiForgeryOptions _abpAntiForgeryOptions;
private readonly ILogger _logger;
private readonly ILogger<AbpValidateAntiforgeryTokenAuthorizationFilter> _logger;
public AbpValidateAntiforgeryTokenAuthorizationFilter(
IAntiforgery antiforgery,
IOptions<AntiforgeryOptions> antiforgeryOptions,
IOptions<AbpAntiForgeryOptions> abpAntiForgeryOptions,
IOptionsSnapshot<CookieAuthenticationOptions> namedOptionsAccessor,
ILogger logger)
ILogger<AbpValidateAntiforgeryTokenAuthorizationFilter> logger)
{
_antiforgery = antiforgery;
_antiforgeryOptions = antiforgeryOptions.Value;

Loading…
Cancel
Save