// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.AspNet.Identity
{
///
/// Used to validate a role
///
///
public interface IRoleValidator where TRole : class
{
///
/// ValidateAsync the user
///
///
///
///
///
Task ValidateAsync(RoleManager manager, TRole role,
CancellationToken cancellationToken = default(CancellationToken));
}
}