Skip to content

FileDapperMaticAccessRepository ​

Namespace: MJCZone.DapperMatic.AspNetCore.Repositories

Assembly: MJCZone.DapperMatic.AspNetCore

Summary ​

Keeps policies and tenants in a JSON file, written whole and atomically on each change. Several processes may read the file; one should write it.

Inheritance ​

Implemented Interfaces:

public

Contents ​

Constructors (1) | Methods (14)

Constructors ​

FileDapperMaticAccessRepository ​

Initializes a new instance of the FileDapperMaticAccessRepository class.

csharp
FileDapperMaticAccessRepository(string path)

Parameters ​

  • path (string) - The file; created when first written.

Methods ​

MethodSummary
GetAsync
SavePolicyAsync
DeletePolicyAsync
SaveWebhookAsync
DeleteWebhookAsync
SaveTenantAsync
DeleteTenantAsync
SaveServiceAccountAsync
DeleteServiceAccountAsync
ReplaceAsync
GetType
ToString
Equals
GetHashCode

GetAsync ​

csharp
Task<DapperMaticAccessDocument> GetAsync()

Returns ​

Type: Task<DapperMaticAccessDocument>

SavePolicyAsync ​

csharp
Task SavePolicyAsync()

Returns ​

Type: Task

DeletePolicyAsync ​

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

Returns ​

Type: Task&lt;bool&gt;

SaveWebhookAsync ​

csharp
Task SaveWebhookAsync()

Returns ​

Type: Task

DeleteWebhookAsync ​

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

Returns ​

Type: Task&lt;bool&gt;

SaveTenantAsync ​

csharp
Task SaveTenantAsync()

Returns ​

Type: Task

DeleteTenantAsync ​

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

Returns ​

Type: Task&lt;bool&gt;

SaveServiceAccountAsync ​

csharp
Task SaveServiceAccountAsync()

Returns ​

Type: Task

DeleteServiceAccountAsync ​

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

Returns ​

Type: Task&lt;bool&gt;

ReplaceAsync ​

csharp
Task ReplaceAsync()

Returns ​

Type: Task

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()