using System.Collections.Generic; namespace xIdentityService.Interfaces { public interface IXPolicyHandler { /// /// Add Specified Role ... /// /// /// /// bool AddPolicy( string policy, IEnumerable requiredRoles ); /// /// Check Specified Role Exists or not ... /// /// /// bool HasPolicy(string policy); /// /// Remove Specified Role ... /// /// /// bool RemovePolicy(string policy); /// /// Check Specified Policy passed or not ... /// /// /// /// bool IsPolicyPassed( string policy, IEnumerable roles ); } }