public SyncingContext AfterPeerIsAdded(ISynchronizationPeer syncPeer) { _peers.TryAdd(syncPeer.ClientId, syncPeer); var task = new Task(async() => { await SyncManager.AddPeer(syncPeer); }); task.RunSynchronously(); return(this); }
public SyncingContext AfterPeerIsAdded(ISynchronizationPeer syncPeer) { _peers.TryAdd(syncPeer.ClientId, syncPeer); SyncManager.AddPeer(syncPeer); return(this); }