Base.UChannel.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
		public override void Dispose()
		{
			if (this.Id == 0)
			{
				return;
			}
			base.Dispose();
			this.socket.Dispose();
		}

Usage Example

Esempio n. 1
0
        public override void Dispose()
        {
            if (this.poller == null)
            {
                return;
            }

            foreach (long id in this.idChannels.Keys.ToArray())
            {
                UChannel channel = this.idChannels[id];
                channel.Dispose();
            }

            this.poller = null;
        }
All Usage Examples Of Base.UChannel::Dispose