Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IDatabaseIteration.cs
1using System;
2using System.Threading.Tasks;
3
5{
9 public interface IDatabaseIteration<T>
10 where T : class
11 {
16
21
26 Task StartCollection(string CollectionName);
27
32
38 Task ProcessObject(T Object);
39
45 Task IncompatibleObject(object ObjectId);
46
51 Task ReportException(Exception Exception);
52 }
53}
Interface for iterations of database contents.
Task StartDatabase()
Is called when iteration of database is started.
Task StartCollection(string CollectionName)
Is called when a collection is started.
Task EndCollection()
Is called when a collection is finished.
Task ReportException(Exception Exception)
Is called when an exception has occurred.
Task ProcessObject(T Object)
Is called when an object is processed.
Task IncompatibleObject(object ObjectId)
Is called when an incompatible (with T ) object is processed.
Task EndDatabase()
Is called when iteration of database is finished.