Interface IConsentProvider
A provider for one or more possible ConsentKind.
[RequireImplementors]
[Obsolete("Use IUserTraitProvider<TUserTrait> instead.")]
public interface IConsentProvider
Properties
SupportedConsents
Collection of supported Consents
IEnumerable<ConsentKind> SupportedConsents { get; }
Property Value
Methods
AskForConsent()
Ask a user for supported consents.
Task<IEnumerable<Consent>> AskForConsent()
Returns
- Task<IEnumerable<Consent>>
A collection of consents whose status has changed, after the user has been asked.
GetConsentStatus(ConsentKind)
Returns the current status for a given consent kind.
ConsentStatus GetConsentStatus(ConsentKind consentKind)
Parameters
consentKindConsentKind
Returns
Initialize()
This method is called before any other method of the consent provider.
Task Initialize()
Returns
IsConsentApplicable(ConsentKind)
Return
bool IsConsentApplicable(ConsentKind consentKind)
Parameters
consentKindConsentKind
Returns
IsConsentManagementAvailable(ConsentKind)
Return
bool IsConsentManagementAvailable(ConsentKind consentKind)
Parameters
consentKindConsentKind
Returns
- See Also
OpenConsentManagement(ConsentKind)
Open the consent management screen for a given consent kind. Complete the task after the management screen has been closed.
Task<ConsentStatus?> OpenConsentManagement(ConsentKind consentKind)
Parameters
consentKindConsentKind
Returns
- Task<ConsentStatus?>
New status for the consent, or
null when change of consent is not possible.
- See Also