Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
InternalDatabase.cs
1using System;
2using System.Collections.Generic;
3using System.Threading.Tasks;
6
8{
13 {
18 {
19 }
20
26 public string Name(Language Language)
27 {
28 return "Local Internal Encrypted Object Database";
29 }
30
36 {
37 return new DatabaseSettings();
38 }
39
44 public Task ConfigureSettings(object Settings)
45 {
46 if (!Database.Locked)
48
49 return Task.CompletedTask;
50 }
51
55 public string SettingsResource => string.Empty;
56
64 public Task Test(Dictionary<string, object> Form, bool Save, object Settings)
65 {
66 return Task.CompletedTask;
67 }
68
75 public Task<bool> TestEnvironmentVariables(DatabaseConfiguration Configuration, object Settings)
76 {
77 return Task.FromResult(true);
78 }
79
80 }
81}
InternalDatabase()
Plugin for the local database.
Task< bool > TestEnvironmentVariables(DatabaseConfiguration Configuration, object Settings)
Tests database connection parameters available via environment variables.
Task ConfigureSettings(object Settings)
Configures a database connection using the provided settings object.
string Name(Language Language)
Displayable name of database plug-in
string SettingsResource
Resource name pointing to settings form.
Task Test(Dictionary< string, object > Form, bool Save, object Settings)
Tests database connection parameters.
DatabaseSettings CreateNewSettings()
Creates a new settings object.
Static interface for database persistence. In order to work, a database provider has to be assigned t...
Definition: Database.cs:19
static void Register(IDatabaseProvider DatabaseProvider)
Registers a database provider for use from the static Database class, throughout the lifetime of the ...
Definition: Database.cs:31
static IDatabaseProvider Provider
Registered database provider.
Definition: Database.cs:57
static bool Locked
If the datbase provider has been locked for the rest of the run-time of the application.
Definition: Database.cs:87
Contains information about a language.
Definition: Language.cs:17