using System; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using Bit.Core.Models.Table; namespace Bit.Core.Identity { public class RoleStore : IRoleStore { public void Dispose() { } public Task CreateAsync(Role role, CancellationToken cancellationToken) { throw new NotImplementedException(); } public Task DeleteAsync(Role role, CancellationToken cancellationToken) { throw new NotImplementedException(); } public Task FindByIdAsync(string roleId, CancellationToken cancellationToken) { throw new NotImplementedException(); } public Task FindByNameAsync(string normalizedRoleName, CancellationToken cancellationToken) { throw new NotImplementedException(); } public Task GetNormalizedRoleNameAsync(Role role, CancellationToken cancellationToken) { return Task.FromResult(role.Name); } public Task GetRoleIdAsync(Role role, CancellationToken cancellationToken) { throw new NotImplementedException(); } public Task GetRoleNameAsync(Role role, CancellationToken cancellationToken) { return Task.FromResult(role.Name); } public Task SetNormalizedRoleNameAsync(Role role, string normalizedName, CancellationToken cancellationToken) { return Task.FromResult(0); } public Task SetRoleNameAsync(Role role, string roleName, CancellationToken cancellationToken) { role.Name = roleName; return Task.FromResult(0); } public Task UpdateAsync(Role role, CancellationToken cancellationToken) { throw new NotImplementedException(); } } }