Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ILedgerExport.cs
1using System;
2using System.Threading.Tasks;
3
5{
9 public interface ILedgerExport
10 {
16 Task<bool> StartLedger(ILedgerProvider Provider);
17
22 Task<bool> EndLedger();
23
29 Task<bool> StartCollection(string CollectionName);
30
35 Task<bool> EndCollection();
36
42 Task<bool> StartBlock(string BlockID);
43
50 Task<bool> BlockMetaData(string Key, object Value);
51
56 Task<bool> EndBlock();
57
66 Task<bool> StartEntry(string ObjectId, string TypeName, EntryType EntryType, DateTimeOffset EntryTimestamp);
67
72 Task<bool> EndEntry();
73
79 Task<bool> CollectionCleared(DateTimeOffset EntryTimestamp);
80
87 Task<bool> ReportProperty(string PropertyName, object PropertyValue);
88
94 Task<bool> ReportError(string Message);
95
101 Task<bool> ReportException(Exception Exception);
102 }
103}
Interface for ledger providers that can be plugged into the static Ledger class.
Task< bool > EndCollection()
Is called when a collection is finished.
Task< bool > ReportProperty(string PropertyName, object PropertyValue)
Is called when a property is reported.
Task< bool > StartCollection(string CollectionName)
Is called when a collection is started.
Task< bool > EndLedger()
Is called when export of ledger is finished.
Task< bool > ReportException(Exception Exception)
Is called when an exception has occurred.
Task< bool > StartLedger(ILedgerProvider Provider)
Is called when export of ledger is started.
Task< bool > BlockMetaData(string Key, object Value)
Reports block meta-data.
Task< bool > EndBlock()
Is called when a block in a collection is finished.
Task< bool > CollectionCleared(DateTimeOffset EntryTimestamp)
Is called when the collection has been cleared.
Task< bool > StartEntry(string ObjectId, string TypeName, EntryType EntryType, DateTimeOffset EntryTimestamp)
Is called when an entry is started.
Task< bool > StartBlock(string BlockID)
Is called when a block in a collection is started.
Task< bool > ReportError(string Message)
Is called when an error is reported.
Task< bool > EndEntry()
Is called when an entry is finished.
EntryType
Ledger entry type.
Definition: ILedgerEntry.cs:9