-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Mar 26, 2021
1 parent
327f10f
commit fd5d9f5
Showing
4 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...uacongas.TheIdServer.BlazorApp.Infrastructure/Services/IReadOnlyLocalizedResourceStore.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Project: Aguafrommars/TheIdServer | ||
// Copyright (c) 2021 @Olivier Lefebvre | ||
using Aguacongas.IdentityServer.Store; | ||
using Aguacongas.IdentityServer.Store.Entity; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Aguacongas.TheIdServer.BlazorApp.Services | ||
{ | ||
public interface IReadOnlyLocalizedResourceStore | ||
{ | ||
Task<PageResponse<LocalizedResource>> GetAsync(PageRequest pageRequest, CancellationToken cancellationToken = default); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...guacongas.TheIdServer.BlazorApp.Infrastructure/Services/ReadOnlyLocalizedResourceStore.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Project: Aguafrommars/TheIdServer | ||
// Copyright (c) 2021 @Olivier Lefebvre | ||
using Aguacongas.IdentityServer.Store; | ||
using Aguacongas.IdentityServer.Store.Entity; | ||
using System; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Aguacongas.TheIdServer.BlazorApp.Services | ||
{ | ||
public class ReadOnlyLocalizedResourceStore : IReadOnlyLocalizedResourceStore | ||
{ | ||
private readonly IAdminStore<LocalizedResource> _adminStore; | ||
|
||
public ReadOnlyLocalizedResourceStore(IAdminStore<LocalizedResource> adminStore) | ||
{ | ||
_adminStore = adminStore ?? throw new ArgumentNullException(nameof(adminStore)); | ||
} | ||
|
||
public Task<PageResponse<LocalizedResource>> GetAsync(PageRequest pageRequest, CancellationToken cancellationToken = default) | ||
=> _adminStore.GetAsync(pageRequest, cancellationToken); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters