Exemplo n.º 1
0
        /// <summary>
        /// This method clears the user's <see cref="TokenCache"/>.
        /// </summary>
        /// <param name="claimsPrincipal">The <see cref="ClaimsPrincipal"/> for the user</param>
        /// <returns>A <see cref="Task"/></returns>
        public async Task ClearCacheAsync(ClaimsPrincipal claimsPrincipal)
        {
            Guard.ArgumentNotNull(claimsPrincipal, nameof(claimsPrincipal));

            await _tokenCacheService.ClearCacheAsync(claimsPrincipal)
            .ConfigureAwait(false);
        }
Exemplo n.º 2
0
 public async Task ClearCacheAsync(ClaimsPrincipal claimsPrincipal)
 {
     await _tokenCacheService.ClearCacheAsync(claimsPrincipal).ConfigureAwait(false);
 }