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;
2using System.Threading.Tasks;
3using Waher.Events;
4
6{
10 public interface IConsolidator : IDisposable
11 {
15 Task<string[]> GetSources();
16
20 object Tag
21 {
22 get;
23 set;
24 }
25
30
37 Task<bool> Add(string Source, MarkdownDocument Markdown);
38
46 Task<bool> Add(string Source, MarkdownDocument Markdown, string Id);
47
54 Task<bool> Add(string Source, string Text);
55
63 Task<bool> Add(string Source, string Text, string Id);
64
72 Task<bool> Update(string Source, MarkdownDocument Markdown, string Id);
73
81 Task<bool> Update(string Source, string Text, string Id);
82
86 event EventHandlerAsync<SourceEventArgs> Added;
87
91 event EventHandlerAsync<SourceEventArgs> Updated;
92
97 }
98}
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.
delegate Task EventHandlerAsync(object Sender, EventArgs e)
Asynchronous version of EventArgs.