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 {
16 Task<bool> StartDatabase(IDatabaseProvider Provider);
17
22 Task<bool> EndDatabase();
23
29 Task<bool> StartCollection(string CollectionName);
30
35 Task<bool> EndCollection();
36
41 Task<bool> StartIndex();
42
47 Task<bool> EndIndex();
48
55 Task<bool> ReportIndexField(string FieldName, bool Ascending);
56
63 Task<string> StartObject(string ObjectId, string TypeName);
64
69 Task<bool> EndObject();
70
77 Task<bool> ReportProperty(string PropertyName, object PropertyValue);
78
84 Task<bool> ReportError(string Message);
85
91 Task<bool> ReportException(Exception Exception);
92 }
93}
Interface for database providers that can be plugged into the static Database class.
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 > 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 > StartDatabase(IDatabaseProvider Provider)
Is called when export of database is started.
Task< bool > StartCollection(string CollectionName)
Is called when a collection is started.