last ...
This commit is contained in:
+40
-22
@@ -1,31 +1,49 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using xIdentityModels.Models;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xIdentityService.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Implemented on xIds over IdentityServer4 ConfigurationDbContext ...
|
||||
/// </summary>
|
||||
public interface IXScopeSyncService
|
||||
{
|
||||
/// <summary>
|
||||
/// Implemented on xIds over IdentityServer4 ConfigurationDbContext ...
|
||||
/// </summary>
|
||||
public interface IXScopeSyncService
|
||||
{
|
||||
Task UpsertAsync(XScopeDefinition scope, CancellationToken cancellationToken = default);
|
||||
Task RemoveAsync(string scopeName, CancellationToken cancellationToken = default);
|
||||
Task<bool> IsApiResourceExistsAsync(string apiResourceName, CancellationToken cancellationToken = default);
|
||||
}
|
||||
Task UpsertAsync(
|
||||
XScopeDefinition scope,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
Task RemoveAsync(
|
||||
string scopeName,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
Task<bool> IsApiResourceExistsAsync(
|
||||
string apiResourceName,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Implemented on xIds over RoleManager<IdentityRole> ...
|
||||
/// </summary>
|
||||
public interface IXRoleSyncService
|
||||
{
|
||||
Task UpsertAsync(XRoleDefinition role, CancellationToken cancellationToken = default);
|
||||
Task RemoveAsync(string roleName, CancellationToken cancellationToken = default);
|
||||
Task<int> CountUsersInRoleAsync(string roleName, CancellationToken cancellationToken = default);
|
||||
Task<IEnumerable<string>> GetUserRolesAsync(string userSelectByParam, CancellationToken cancellationToken = default);
|
||||
}
|
||||
/// <summary>
|
||||
/// Implemented on xIds over RoleManager<IdentityRole> ...
|
||||
/// </summary>
|
||||
public interface IXRoleSyncService
|
||||
{
|
||||
Task UpsertAsync(
|
||||
XRoleDefinition role,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
Task RemoveAsync(
|
||||
string roleName,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
Task<int> CountUsersInRoleAsync(
|
||||
string roleName,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
Task<IEnumerable<string>> GetUserRolesAsync(
|
||||
string userSelectByParam,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user