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
GetAsync
csharp
Task<DapperMaticAccessDocument> GetAsync()Returns
Type: Task<DapperMaticAccessDocument>
SavePolicyAsync
csharp
Task SavePolicyAsync()Returns
Type: Task
DeletePolicyAsync
csharp
Task<bool> DeletePolicyAsync()Returns
Type: Task<bool>
SaveWebhookAsync
csharp
Task SaveWebhookAsync()Returns
Type: Task
DeleteWebhookAsync
csharp
Task<bool> DeleteWebhookAsync()Returns
Type: Task<bool>
SaveTenantAsync
csharp
Task SaveTenantAsync()Returns
Type: Task
DeleteTenantAsync
csharp
Task<bool> DeleteTenantAsync()Returns
Type: Task<bool>
SaveServiceAccountAsync
csharp
Task SaveServiceAccountAsync()Returns
Type: Task
DeleteServiceAccountAsync
csharp
Task<bool> DeleteServiceAccountAsync()Returns
Type: Task<bool>
ReplaceAsync
csharp
Task ReplaceAsync()Returns
Type: Task
GetType
csharp
GetType()ToString
csharp
ToString()Equals
csharp
Equals()GetHashCode
csharp
GetHashCode()