Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
LogSink.cs
1using System.Threading.Tasks;
2using Waher.Events;
3
5{
6 public class LogSink : EventSink
7 {
8 private readonly LogView view;
9
10 public LogSink(LogView View)
11 : base("Main Window Log")
12 {
13 this.view = View;
14 }
15
16 public override Task Queue(Event Event)
17 {
18 this.view.Add(new LogItem(Event));
19 return Task.CompletedTask;
20 }
21 }
22}
Interaction logic for LogView.xaml
Definition: LogView.xaml.cs:23
Represents one item in an event log output.
Definition: LogItem.cs:14
override Task Queue(Event Event)
Queues an event to be output.
Definition: LogSink.cs:16
Class representing an event.
Definition: Event.cs:10
Base class for event sinks.
Definition: EventSink.cs:9