Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad committed Nov 25, 2024
1 parent 917d825 commit efeda90
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ internal sealed class AltinnAuthorizationClient : IAltinnAuthorization
private readonly IFusionCache _partiesCache;
private readonly IUser _user;
private readonly ILogger _logger;
private readonly IMemoryCache _inMemoryCache;

private static readonly JsonSerializerOptions SerializerOptions = new()
{
Expand All @@ -36,15 +35,13 @@ public AltinnAuthorizationClient(
HttpClient client,
IFusionCacheProvider cacheProvider,
IUser user,
ILogger<AltinnAuthorizationClient> logger,
IMemoryCache inMemoryCache)
ILogger<AltinnAuthorizationClient> logger)
{
_httpClient = client ?? throw new ArgumentNullException(nameof(client));
_pdpCache = cacheProvider.GetCache(nameof(Authorization)) ?? throw new ArgumentNullException(nameof(cacheProvider));
_partiesCache = cacheProvider.GetCache(nameof(AuthorizedPartiesResult)) ?? throw new ArgumentNullException(nameof(cacheProvider));
_user = user ?? throw new ArgumentNullException(nameof(user));
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
_inMemoryCache = inMemoryCache;
}

public async Task<DialogDetailsAuthorizationResult> GetDialogDetailsAuthorization(
Expand Down

0 comments on commit efeda90

Please sign in to comment.