コード例 #1
0
        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
ファイル: HTTPConnection.cs プロジェクト: Siegema/socket-test
        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;
 }
コード例 #4
0
        public override void Shutdown(ShutdownTypes type)
        {
            base.Shutdown(type);

            XHR_Abort(this.NativeId);
        }