Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ResynchEventArgs.cs
1using System;
2using System.Threading.Tasks;
3using Waher.Events;
4
6{
10 public class ResynchEventArgs : EventArgs
11 {
12 private readonly EventHandlerAsync<ResynchEventArgs> callback;
13 private readonly string remoteFullJid;
14 private bool ok = false;
15
21 public ResynchEventArgs(string RemoteFullJid, EventHandlerAsync<ResynchEventArgs> Callback)
22 {
23 this.remoteFullJid = RemoteFullJid;
24 this.callback = Callback;
25 }
26
30 public string RemoteFullJid => this.remoteFullJid;
31
35 public bool Ok => this.ok;
36
42 public Task Done(bool Ok)
43 {
44 this.ok = Ok;
45 return this.callback.Raise(this, this);
46 }
47 }
48}
Peer connection event arguments.
Task Done(bool Ok)
Method called by callback, to report that the synchronization succeeded (Ok =true),...
bool Ok
If the synchronization method succeeded (true) or failed (false).
string RemoteFullJid
JID of the remote end-point.
ResynchEventArgs(string RemoteFullJid, EventHandlerAsync< ResynchEventArgs > Callback)
Peer connection event arguments.