InMemoryDapperMaticKeyRepository
Namespace: MJCZone.DapperMatic.AspNetCore.Repositories
Assembly: MJCZone.DapperMatic.AspNetCore
Summary
Keeps API keys in memory: lost when the application stops, and not shared by its instances. For tests and development.
Inheritance
Implemented Interfaces:
public
Contents
Constructors (1) | Methods (9)
Constructors
InMemoryDapperMaticKeyRepository
csharp
InMemoryDapperMaticKeyRepository()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()