using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace xIdentityService.Interfaces { public interface IXScopeSyncService { /// /// Implemented on xIds over IdentityServer4 ConfigurationDbContext ... /// public interface IXScopeSyncService { Task UpsertAsync(XScopeDefinition scope, CancellationToken cancellationToken = default); Task RemoveAsync(string scopeName, CancellationToken cancellationToken = default); Task IsApiResourceExistsAsync(string apiResourceName, CancellationToken cancellationToken = default); } /// /// Implemented on xIds over RoleManager<IdentityRole> ... /// public interface IXRoleSyncService { Task UpsertAsync(XRoleDefinition role, CancellationToken cancellationToken = default); Task RemoveAsync(string roleName, CancellationToken cancellationToken = default); Task CountUsersInRoleAsync(string roleName, CancellationToken cancellationToken = default); Task> GetUserRolesAsync(string userSelectByParam, CancellationToken cancellationToken = default); } } }