public void StopUserStream() { var oldStream = Interlocked.Exchange(ref this.userStream, null); oldStream?.Dispose(); }