示例#1
0
 public Task <string> GetRoleIdAsync(TRole role, CancellationToken cancellationToken)
 {
     return(Task.FromResult(_options.ConvertIdToString(GetProperty <TRole, object>(role, _options.RoleIdProperty))));
 }
示例#2
0
 public Task <string> GetUserIdAsync(TUser user, CancellationToken cancellationToken)
 {
     return(Task.FromResult(_options.ConvertIdToString(GetProperty <TUser, object>(user, _options.UserIdProperty))));
 }