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 {
15 Task<bool> StartLedger();
16
21 Task<bool> EndLedger();
22
28 Task<bool> StartCollection(string CollectionName);
29
34 Task<bool> EndCollection();
35
41 Task<bool> StartBlock(string BlockID);
42
49 Task<bool> BlockMetaData(string Key, object Value);
50
55 Task<bool> EndBlock();
56
65 Task<bool> StartEntry(string ObjectId, string TypeName, EntryType EntryType, DateTimeOffset EntryTimestamp);
66
71 Task<bool> EndEntry();
72
78 Task<bool> CollectionCleared(DateTimeOffset EntryTimestamp);
79
86 Task<bool> ReportProperty(string PropertyName, object PropertyValue);
87
93 Task<bool> ReportError(string Message);
94
100 Task<bool> ReportException(Exception Exception);
101 }
102}
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 > StartLedger()
Is called when export of ledger is started.
Task< bool > ReportException(Exception Exception)
Is called when an exception has occurred.
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