示例#1
0
 public void Dispose()
 {
     _tagSource.Resumed -= OnResumed;
     _tagSource.Paused  -= OnPaused;
     _tagSource.TagsChangedForBuffer -= OnTagsChangedForBuffer;
     _tagSource.OnTaggerDisposed(this);
 }
            public void Dispose()
            {
                _cancellationTokenSource.Cancel();
                _cancellationTokenSource.Dispose();

                _tagSource.Resumed -= OnResumed;
                _tagSource.Paused  -= OnPaused;
                _tagSource.TagsChangedForBuffer -= OnTagsChangedForBuffer;
                _tagSource.OnTaggerDisposed(this);
            }