public Transport Open() { if (this.ReadyState == Transport.ReadyStateEnum.CLOSED) { this.ReadyState = Transport.ReadyStateEnum.OPENING; this.DoOpen(); } return(this); }
protected void OnClose() { LogManager.GetLogger(Global.CallerName("", 0, "")).Info("Transport.OnClose()"); this.ReadyState = Transport.ReadyStateEnum.CLOSED; this.Emit(Transport.EVENT_CLOSE); }
protected void OnOpen() { this.ReadyState = Transport.ReadyStateEnum.OPEN; this.Writable = true; this.Emit(Transport.EVENT_OPEN); }