Ejemplo n.º 1
0
        /// <summary>
        /// Close the counter, releasing the resource managed by the media driver if this was the creator of the Counter.
        /// <para>
        /// This method is idempotent.
        /// </para>
        /// </summary>
        public override void Dispose()
        {
            if (_isClosed.CompareAndSet(false, true))
            {
                base.Dispose();

                _clientConductor?.ReleaseCounter(this);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Close the counter, releasing the resource managed by the media driver if this was the creator of the Counter.
 /// <para>
 /// This method is idempotent.
 /// </para>
 /// </summary>
 public virtual void Close()
 {
     if (null != clientConductor)
     {
         clientConductor.ReleaseCounter(this);
     }
     else
     {
         isClosed = true;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Close the counter, releasing the resource managed by the media driver if this was the creator of the Counter.
 /// <para>
 /// This method is idempotent.
 /// </para>
 /// </summary>
 public override void Dispose()
 {
     if (null != clientConductor)
     {
         clientConductor.ReleaseCounter(this);
     }
     else
     {
         isClosed = true;
     }
 }