예제 #1
0
 /// <summary>
 /// Creates a new instance of <see cref="ParsedScopePersistedGrantService{T}"/>.
 /// </summary>
 /// <param name="inner">Implements persisted grant logic.</param>
 /// <param name="persistedGrantDbContext">Abstraction for the operational data context.</param>
 /// <param name="parsedScopeNotificationService">Contains methods to notify an API when a dynamic consent is altered.</param>
 /// <param name="serializer">Interface for persisted grant serialization.</param>
 /// <param name="scopeParser">Allows parsing raw scopes values into structured scope values.</param>
 public ParsedScopePersistedGrantService(TPersistedGrantService inner, IPersistedGrantDbContext persistedGrantDbContext, IParsedScopeNotificationService parsedScopeNotificationService, IPersistentGrantSerializer serializer,
                                         IScopeParser scopeParser)
 {
     _inner = inner;
     _persistedGrantDbContext        = persistedGrantDbContext ?? throw new ArgumentNullException(nameof(persistedGrantDbContext));
     _parsedScopeNotificationService = parsedScopeNotificationService ?? throw new ArgumentNullException(nameof(parsedScopeNotificationService));
     _serializer  = serializer ?? throw new ArgumentNullException(nameof(serializer));
     _scopeParser = scopeParser ?? throw new ArgumentNullException(nameof(scopeParser));
 }
 /// <summary>
 /// Creates a new instance of <see cref="ParsedScopeConsentService{T}"/>.
 /// </summary>
 /// <param name="inner">Service to retrieve and update consent.</param>
 /// <param name="parsedScopeNotificationService">Contains methods to notify an API when a dynamic consent is altered.</param>
 public ParsedScopeConsentService(TConsentService inner, IParsedScopeNotificationService parsedScopeNotificationService)
 {
     _inner = inner;
     _parsedScopeNotificationService = parsedScopeNotificationService ?? throw new ArgumentNullException(nameof(parsedScopeNotificationService));
 }