Skip to content

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 ​

MethodSummary
GetAsync
ListAsync
SaveAsync
RevokeAsync
TouchAsync
GetType
ToString
Equals
GetHashCode

GetAsync ​

csharp
Task<DapperMaticApiKey?> GetAsync()

Returns ​

Type: Task<DapperMaticApiKey?>

ListAsync ​

csharp
Task&lt;IReadOnlyList&lt;DapperMaticApiKey&gt;&gt; ListAsync()

Returns ​

Type: Task<IReadOnlyList<DapperMaticApiKey>>

SaveAsync ​

csharp
Task SaveAsync()

Returns ​

Type: Task

RevokeAsync ​

csharp
Task&lt;bool&gt; RevokeAsync()

Returns ​

Type: Task&lt;bool&gt;

TouchAsync ​

csharp
Task TouchAsync()

Returns ​

Type: Task

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()