private void MainForm_FormClosed(object sender, FormClosedEventArgs e) { // If you close the application and there are still windows opened // they will be unregistered automatically by the UnregisterApplication // call. sessionManager.Proxy.UnregisterApplication(ApplicationId); sessionManager.Dispose(); }
private void MainForm_FormClosed(object sender, FormClosedEventArgs e) { sessionManager.Dispose(); }
public void Dispose() { _clientSessionManager.Dispose(); _nodeContext.ShardServer.Dispose(); _nodeContext.DatabasesManager.Dispose(); }