Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IConsolidator.cs
1using System.Threading.Tasks;
2using Waher.Events;
3
5{
9 public interface IConsolidator : IDisposableAsync
10 {
14 Task<string[]> GetSources();
15
19 object Tag
20 {
21 get;
22 set;
23 }
24
29
36 Task<bool> Add(string Source, MarkdownDocument Markdown);
37
45 Task<bool> Add(string Source, MarkdownDocument Markdown, string Id);
46
53 Task<bool> Add(string Source, string Text);
54
62 Task<bool> Add(string Source, string Text, string Id);
63
71 Task<bool> Update(string Source, MarkdownDocument Markdown, string Id);
72
80 Task<bool> Update(string Source, string Text, string Id);
81
85 event EventHandlerAsync<SourceEventArgs> Added;
86
90 event EventHandlerAsync<SourceEventArgs> Updated;
91
96 }
97}
Contains a markdown document. This markdown document class supports original markdown,...
EventHandlerAsync Disposed
Event raised when consolidator has been disposed.
Task< bool > Update(string Source, MarkdownDocument Markdown, string Id)
Updates incoming markdown information.
Task< int > GetNrReportedSources()
Number of sources that have reported content.
object Tag
External tag object that can be tagged to the object by its owner.
EventHandlerAsync< SourceEventArgs > Updated
Event raised when content from a source has been updated.
Task< bool > Add(string Source, string Text, string Id)
Adds incoming markdown information.
Task< bool > Update(string Source, string Text, string Id)
Updates incoming markdown information.
Task< string[]> GetSources()
Consolidated sources.
Task< bool > Add(string Source, MarkdownDocument Markdown)
Adds incoming markdown information.
EventHandlerAsync< SourceEventArgs > Added
Event raised when content from a source has been added.
Task< bool > Add(string Source, MarkdownDocument Markdown, string Id)
Adds incoming markdown information.
Task< bool > Add(string Source, string Text)
Adds incoming markdown information.
Interface for asynchronously disposable objects.
delegate Task EventHandlerAsync(object Sender, EventArgs e)
Asynchronous version of EventArgs.