/// <summary> /// Creates a new instance of <see cref="DynamicScopePersistedGrantService{T}"/>. /// </summary> /// <param name="inner">Implements persisted grant logic.</param> /// <param name="persistedGrantDbContext">Abstraction for the operational data context.</param> /// <param name="dynamicScopeNotificationService">Contains methods to notify an API when a dynamic consent is altered.</param> /// <param name="serializer">Interface for persisted grant serialization.</param> public DynamicScopePersistedGrantService(T inner, IPersistedGrantDbContext persistedGrantDbContext, IDynamicScopeNotificationService dynamicScopeNotificationService, IPersistentGrantSerializer serializer) { _inner = inner; _persistedGrantDbContext = persistedGrantDbContext ?? throw new ArgumentNullException(nameof(persistedGrantDbContext)); _dynamicScopeNotificationService = dynamicScopeNotificationService ?? throw new ArgumentNullException(nameof(dynamicScopeNotificationService)); _serializer = serializer ?? throw new ArgumentNullException(nameof(serializer)); }
/// <summary> /// Creates a new instance of <see cref="DynamicScopeConsentService{T}"/>. /// </summary> /// <param name="inner">Service to retrieve and update consent.</param> /// <param name="dynamicScopeNotificationService">Contains methods to notify an API when a dynamic consent is altered.</param> public DynamicScopeConsentService(T inner, IDynamicScopeNotificationService dynamicScopeNotificationService) { _inner = inner; _dynamicScopeNotificationService = dynamicScopeNotificationService ?? throw new ArgumentNullException(nameof(dynamicScopeNotificationService)); }