Base.AChannel.Dispose C# (CSharp) Метод

Dispose() публичный Метод

public Dispose ( ) : void
Результат void
		public virtual void Dispose()
		{
			if (this.Id == 0)
			{
				return;
			}

			this.service.Remove(this.Id);

			this.Id = 0;
		}
	}

Usage Example

Пример #1
0
        public void RemoveChannel(long channelId)
        {
            AChannel channel = this.service?.GetChannel(channelId);

            if (channel == null)
            {
                return;
            }
            this.service.Remove(channelId);
            channel.Dispose();
        }
All Usage Examples Of Base.AChannel::Dispose