|
|
|
@ -19,7 +19,7 @@ namespace Volo.Abp.IdentityServer.Clients |
|
|
|
} |
|
|
|
|
|
|
|
public virtual async Task<Client> FindByCliendIdAsync( |
|
|
|
string clientId, |
|
|
|
string clientId, |
|
|
|
bool includeDetails = true, |
|
|
|
CancellationToken cancellationToken = default) |
|
|
|
{ |
|
|
|
@ -28,11 +28,14 @@ namespace Volo.Abp.IdentityServer.Clients |
|
|
|
.FirstOrDefaultAsync(x => x.ClientId == clientId, GetCancellationToken(cancellationToken)); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual async Task<List<Client>> GetListAsync(string sorting, int skipCount, int maxResultCount, bool includeDetails = false, |
|
|
|
public virtual async Task<List<Client>> GetListAsync( |
|
|
|
string sorting, int skipCount, int maxResultCount, string filter, bool includeDetails = false, |
|
|
|
CancellationToken cancellationToken = default) |
|
|
|
{ |
|
|
|
return await DbSet |
|
|
|
.IncludeDetails(includeDetails).OrderBy(sorting ?? nameof(Client.ClientName) + " desc") |
|
|
|
.IncludeDetails(includeDetails) |
|
|
|
.WhereIf(filter != null, x => x.ClientId.Contains(filter)) |
|
|
|
.OrderBy(sorting ?? nameof(Client.ClientName) + " desc") |
|
|
|
.PageBy(skipCount, maxResultCount) |
|
|
|
.ToListAsync(GetCancellationToken(cancellationToken)); |
|
|
|
} |
|
|
|
|