FileDapperMaticKeyRepository
Namespace: MJCZone.DapperMatic.AspNetCore.Repositories
Assembly: MJCZone.DapperMatic.AspNetCore
Summary
Keeps API keys in a JSON file (their secrets only as hashes): for a single instance that keeps its access in a file.
Inheritance
Implemented Interfaces:
public
Contents
Constructors (1) | Methods (9)
Constructors
FileDapperMaticKeyRepository
Initializes a new instance of the FileDapperMaticKeyRepository class.
csharp
FileDapperMaticKeyRepository(string path)Parameters
- path (string) - The file; created when first written.
Methods
| Method | Summary |
|---|---|
| GetAsync | |
| ListAsync | |
| SaveAsync | |
| RevokeAsync | |
| TouchAsync | |
| GetType | |
| ToString | |
| Equals | |
| GetHashCode |
GetAsync
csharp
Task<DapperMaticApiKey?> GetAsync()Returns
Type: Task<DapperMaticApiKey?>
ListAsync
csharp
Task<IReadOnlyList<DapperMaticApiKey>> ListAsync()Returns
Type: Task<IReadOnlyList<DapperMaticApiKey>>
SaveAsync
csharp
Task SaveAsync()Returns
Type: Task
RevokeAsync
csharp
Task<bool> RevokeAsync()Returns
Type: Task<bool>
TouchAsync
csharp
Task TouchAsync()Returns
Type: Task
GetType
csharp
GetType()ToString
csharp
ToString()Equals
csharp
Equals()GetHashCode
csharp
GetHashCode()