Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IDatabaseExport.cs
1using System;
2using System.Threading.Tasks;
3
5{
9 public interface IDatabaseExport
10 {
15 Task<bool> StartDatabase();
16
21 Task<bool> EndDatabase();
22
28 Task<bool> StartCollection(string CollectionName);
29
34 Task<bool> EndCollection();
35
40 Task<bool> StartIndex();
41
46 Task<bool> EndIndex();
47
54 Task<bool> ReportIndexField(string FieldName, bool Ascending);
55
62 Task<string> StartObject(string ObjectId, string TypeName);
63
68 Task<bool> EndObject();
69
76 Task<bool> ReportProperty(string PropertyName, object PropertyValue);
77
83 Task<bool> ReportError(string Message);
84
90 Task<bool> ReportException(Exception Exception);
91 }
92}
Task< bool > EndCollection()
Is called when a collection is finished.
Task< bool > ReportException(Exception Exception)
Is called when an exception has occurred.
Task< bool > ReportProperty(string PropertyName, object PropertyValue)
Is called when a property is reported.
Task< bool > EndObject()
Is called when an object is finished.
Task< bool > EndIndex()
Is called when an index in a collection is finished.
Task< bool > ReportError(string Message)
Is called when an error is reported.
Task< bool > ReportIndexField(string FieldName, bool Ascending)
Is called when a field in an index is reported.
Task< bool > StartDatabase()
Is called when export of database is started.
Task< bool > StartIndex()
Is called when an index in a collection is started.
Task< bool > EndDatabase()
Is called when export of database is finished.
Task< string > StartObject(string ObjectId, string TypeName)
Is called when an object is started.
Task< bool > StartCollection(string CollectionName)
Is called when a collection is started.