Exemplo n.º 1
0
        /// <summary>
        /// Validates the role query.
        /// </summary>
        /// <param name="value">The value.</param>
        /// <returns>IList&lt;ValidatorMessage&gt;.</returns>
        protected override IList <ValidatorMessage> ValidateRoleQuery(RoleQuery <IList <Claim> > value)
        {
            var messages = new List <ValidatorMessage>();

            if (!(value is GetRoleClaims))
            {
                messages.Add(TypeMismatchError <GetRoleClaims>(value));
            }
            return(messages);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Validates the role query.
 /// </summary>
 /// <param name="query">The query.</param>
 /// <returns>IList&lt;ValidatorMessage&gt;.</returns>
 protected virtual IList <ValidatorMessage> ValidateRoleQuery(RoleQuery <T> query)
 => new List <ValidatorMessage>();