public AfterRestart() { host = new DistributedHashTableMasterHost(); host.Start(); using (var storageHost = new DistributedHashTableStorageHost(masterUri)) { storageHost.Start(); var masterProxy = new DistributedHashTableMasterClient(masterUri); while (true) { var topology = masterProxy.GetTopology(); if (topology.Segments.All(x => x.AssignedEndpoint != null)) { break; } Thread.Sleep(100); } } //restart host.Dispose(); host = new DistributedHashTableMasterHost(); host.Start(); }
public void Dispose() { host.Dispose(); }
public void Dispose() { storageHostB.Dispose(); storageHostA.Dispose(); masterHost.Dispose(); }
public void Dispose() { masterHost.Dispose(); }