public virtual async Task ValidatePrincipal(AuthorizeUserContext valiationContext)
 {
     if (OnValidatePrincipal != null)
     {
         await OnValidatePrincipal.Invoke(valiationContext);
     }
 }
 /// <summary>
 /// Implements the interface method by invoking the related delegate method
 /// </summary>
 /// <param name="context"></param>
 /// <returns></returns>
 public virtual Task ValidatePrincipal(CookieValidatePrincipalContext context)
 {
     return(OnValidatePrincipal.Invoke(context));
 }