protected internal override void OnStop() { if (rpc != null) { rpc.Dispose(); } LocalNode.Dispose(); Blockchain.Default.Dispose(); }
/// <inheritdoc/> public void Dispose() { StopClient(); StopServer(); StopNotifier(); StopRpcServer(); m_dispatcher.Dispose(); m_storage.Dispose(); m_rpcServer.Dispose(); m_notifier.Dispose(); }
public void OneTimeTearDown() { m_clientDispatcher.Dispose(); m_clientStorage.Dispose(); m_clientNotifier.Dispose(); m_clientRpc.Dispose(); m_serverDispatcher.Dispose(); m_serverStorage.Dispose(); m_serverNotifier.Dispose(); m_serverRpc.Dispose(); }
protected override void Dispose(bool disposing) { if (disposing) { _rpc.Dispose(); if (components != null) { components.Dispose(); } } base.Dispose(disposing); }
protected internal override void OnStop() { if (consensus != null) { consensus.Dispose(); } if (rpc != null) { rpc.Dispose(); } LocalNode.Dispose(); using (FileStream fs = new FileStream(PeerStatePath, FileMode.Create, FileAccess.Write, FileShare.None)) { LocalNode.SaveState(fs); } Blockchain.Default.Dispose(); }
public void Dispose() { // 停止RpcServer rpcserver?.Dispose(); // 停止所有插件 pluginmgr.Dispose(); // 停止所有的应用链 StopAllAppChains(); // 停止根链 StopRootSystem(); // 关闭ActorSystem ActorSystem.Dispose(); }
public void Dispose() { rpcServer?.Dispose(); ActorSystem.Stop(LocalNode); ActorSystem.Dispose(); }
public void TestDispose() { server.Dispose(); }