// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; namespace Microsoft.AspNet.Identity { /// /// Provides an abstraction for a validating a role. /// /// The type encapsulating a role. public interface IRoleValidator where TRole : class { /// /// Validates a role as an asynchronous operation. /// /// The managing the role store. /// The role to validate. /// A that represents the of the asynchronous validation. Task ValidateAsync(RoleManager manager, TRole role); } }