protected virtual void Dispose(bool isDisposing) { if (isDisposing) { if (!isDisposed) { if (connector != null) { ConnectorUnsubscribe(); connector.Dispose(); } UnSubscribe(); isDisposed = true; } } }
protected virtual void Dispose(bool isDisposing) { if (!isDisposed) { if (isDisposing) { if (serverProcessor != null) { Unsubscribe(serverProcessor); serverProcessor.Dispose(); } if (clientProcessor != null) { Unsubscribe(clientProcessor); clientProcessor.Dispose(); } isDisposed = true; } } }