SportingSolutions.Udapi.Sdk.StreamSubscriber.StopConsuming C# (CSharp) Method

StopConsuming() public method

public StopConsuming ( ) : void
return void
        public void StopConsuming()
        {
            try
            {
                Model.BasicCancel(ConsumerTag);
            }
            catch (Exception e)
            {
                _logger.Error("Error stopping stream for consumedId=" + ConsumerTag, e);
            }
            finally
            {
                Dispatcher.RemoveSubscriber(this);

                try
                {
                    Dispose();
                }
                catch { }

                _logger.DebugFormat("Streaming stopped for consumerId={0}", ConsumerTag);
            }
        }