/// <summary> /// Unregister the identifier for the NetworkService with the NameService. /// </summary> public void Unregister() { if (_localIdentifier == null) { throw new IllegalStateException("Cannot unregister a non existant identifier"); } NamingClient.Unregister(_localIdentifier.ToString()); _localIdentifier = null; _messageHandlerDisposable.Dispose(); }
/// <summary> /// Unregister the identifier for the NetworkService with the NameService. /// </summary> public void Unregister() { if (_localIdentifier == null) { throw new IllegalStateException("Cannot unregister a non existant identifier"); } NamingClient.Unregister(_localIdentifier.ToString()); _localIdentifier = null; if (_universalObserverDisposable != null) { _universalObserverDisposable.Dispose(); } if (_remoteMessageUniversalObserver != null) { _remoteMessageUniversalObserver.Dispose(); } }