Beispiel #1
0
 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);
        }
Beispiel #3
0
 protected ConnectionAcceptor() : base()
 {
     this.State = ConnectionAcceptorState.Stopped;
 }
 protected ConnectionAcceptor() : base()
 {
     this.State = ConnectionAcceptorState.Stopped;
 }