protected void SetState(ConnectionAcceptorState newState) { ConnectionAcceptorState state = this.State; this.State = newState; if (state == newState || this.StateChanged == null) return; this.StateChanged(this, EventArgs.Empty); }
protected void SetState(ConnectionAcceptorState newState) { ConnectionAcceptorState state = this.State; this.State = newState; if (state == newState || this.StateChanged == null) { return; } this.StateChanged(this, EventArgs.Empty); }
protected ConnectionAcceptor() : base() { this.State = ConnectionAcceptorState.Stopped; }