![]() |
Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
|
Static interface for ledger persistence. In order to work, a ledger provider has to be assigned to it. This is ideally done as one of the first steps in the startup of an application. More...
Static Public Member Functions | |
static void | Register (ILedgerProvider LedgerProvider) |
Registers a ledger provider for use from the static Ledger class, throughout the lifetime of the application. More... | |
static void | Register (ILedgerProvider LedgerProvider, bool Lock) |
Registers a ledger provider for use from the static Ledger class, throughout the lifetime of the application. More... | |
static async Task | NewEntry (object Object) |
Adds an entry to the ledger. More... | |
static async Task | UpdatedEntry (object Object) |
Updates an entry in the ledger. More... | |
static async Task | DeletedEntry (object Object) |
Deletes an entry in the ledger. More... | |
static async Task | ClearedCollection (string Collection) |
Clears a collection in the ledger. More... | |
static Task< ILedgerEnumerator< T > > | GetEnumerator< T > () |
Gets an eumerator for objects of type T . More... | |
static Task< ILedgerEnumerator< object > > | GetEnumerator (string CollectionName) |
Gets an eumerator for objects in a collection. More... | |
static Task< string[]> | GetCollections () |
Gets an array of available collections. More... | |
static Task< bool > | Export (ILedgerExport Output) |
Performs an export of the entire ledger. More... | |
static Task< bool > | Export (ILedgerExport Output, LedgerExportRestriction Restriction) |
Performs an export of the entire ledger. More... | |
static Task< bool > | Export (ILedgerExport Output, LedgerExportRestriction Restriction, ProfilerThread Thread) |
Performs an export of the entire ledger. More... | |
static void | StartListeningToDatabaseEvents () |
Makes the ledger listen on database events. Each call to StartListeningToDatabaseEvents must be followed by a call to StopListeningToDatabaseEvents when listening should stop. More... | |
static void | StopListeningToDatabaseEvents () |
Makes the ledger listen on database events. Each call to StartListeningToDatabaseEvents must be followed by a call to StopListeningToDatabaseEvents when listening should stop. More... | |
Properties | |
static ILedgerProvider | Provider [get] |
Registered ledger provider. More... | |
static bool | HasProvider [get] |
If a ledger provider is registered. More... | |
static bool | Locked [get] |
If the datbase provider has been locked for the rest of the run-time of the application. More... | |
Events | |
static ObjectEventHandler | EntryAdded = null |
Event raised when an entry has been added to the ledger. More... | |
static ObjectEventHandler | EntryUpdated = null |
Event raised when an entry has been updated in the ledger. More... | |
static ObjectEventHandler | EntryDeleted = null |
Event raised when an entry has been deleted in the ledger. More... | |
static CollectionEventHandler | CollectionCleared = null |
Event raised when a collection has been cleared. More... | |
Static interface for ledger persistence. In order to work, a ledger provider has to be assigned to it. This is ideally done as one of the first steps in the startup of an application.
|
static |
|
static |
|
static |
|
static |
Performs an export of the entire ledger.
Output | Ledger will be output to this interface. |
Restriction | Optional restrictions to apply. If null, all information available in the ledger will be exported. |
|
static |
Performs an export of the entire ledger.
Output | Ledger will be output to this interface. |
Restriction | Optional restrictions to apply. If null, all information available in the ledger will be exported. |
Thread | Optional Profiler thread. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Registers a ledger provider for use from the static Ledger class, throughout the lifetime of the application.
Note: Only one ledger provider can be registered.
LedgerProvider | Ledger provider to use. |
Lock | If the ledger provider should be locked for the rest of the running time of the application. |
|
static |
Makes the ledger listen on database events. Each call to StartListeningToDatabaseEvents must be followed by a call to StopListeningToDatabaseEvents when listening should stop.
|
static |
Makes the ledger listen on database events. Each call to StartListeningToDatabaseEvents must be followed by a call to StopListeningToDatabaseEvents when listening should stop.
|
static |
|
staticget |
|
staticget |
|
staticget |
|
static |
|
static |
|
static |
|
static |