public void Shutdown(ShutdownTypes type)
        {
            this.ShutdownType = type;

            switch (this.ShutdownType)
            {
            case ShutdownTypes.Gentle:
                this.newFrameSignal.Set();
                break;

            case ShutdownTypes.Immediate:
                this.conn.connector.Stream.Dispose();
                break;
            }
        }
示例#2
0
        public override void Shutdown(ShutdownTypes type)
        {
            base.Shutdown(type);

            if (this.requestHandler != null)
            {
                this.requestHandler.Shutdown(type);
            }

            switch (this.ShutdownType)
            {
            case ShutdownTypes.Immediate:
                this.connector.Dispose();
                break;
            }
        }
示例#3
0
 public void Shutdown(ShutdownTypes type)
 {
     this.ShutdownType = type;
 }
        public override void Shutdown(ShutdownTypes type)
        {
            base.Shutdown(type);

            XHR_Abort(this.NativeId);
        }