/// <summary> /// Dispose of the NetworkService's resources /// </summary> public void Dispose() { NamingClient.Dispose(); _remoteManager.Dispose(); Logger.Log(Level.Verbose, "Disposed of network service"); }
/// <summary> /// Dispose of the NetworkService's resources /// </summary> public void Dispose() { if (Interlocked.Exchange(ref _disposed, 1) == 0) { NamingClient.Dispose(); _remoteManager.Dispose(); LOGGER.Log(Level.Verbose, "Disposed of network service"); } }