protected override void DoBind(EndPoint localAddress) { _ = Interlocked.Exchange(ref v_localAddress, LocalChannelRegistry.Register(this, Volatile.Read(ref v_localAddress), localAddress)); _ = Interlocked.Exchange(ref v_state, State.Bound); }
protected override void DoBind(EndPoint localAddress) { this.localAddress = LocalChannelRegistry.Register(this, this.localAddress, localAddress); this.state = 1; }