コード例 #1
0
 public WebConnection(IWebConnectionState wcs, ServicePoint sPoint)
 {
     this.state             = wcs;
     this.sPoint            = sPoint;
     buffer                 = new byte [4096];
     Data                   = new WebConnectionData();
     queue                  = wcs.Group.Queue;
     abortHelper            = new AbortHelper();
     abortHelper.Connection = this;
     abortHandler           = new EventHandler(abortHelper.Abort);
 }
コード例 #2
0
 public WebConnection(IWebConnectionState wcs, ServicePoint sPoint)
 {
     this.state  = wcs;
     this.sPoint = sPoint;
     buffer      = new byte [4096];
     Data        = new WebConnectionData();
     initConn    = new WaitCallback(state => {
         try {
             InitConnection(state);
         } catch {}
     });
     queue                  = wcs.Group.Queue;
     abortHelper            = new AbortHelper();
     abortHelper.Connection = this;
     abortHandler           = new EventHandler(abortHelper.Abort);
 }
コード例 #3
0
ファイル: WebConnection.cs プロジェクト: anaili/mono
		public WebConnection (IWebConnectionState wcs, ServicePoint sPoint)
		{
			this.state = wcs;
			this.sPoint = sPoint;
			buffer = new byte [4096];
			Data = new WebConnectionData ();
			initConn = new WaitCallback (state => {
				try {
					InitConnection (state);
				} catch {}
				});
			queue = wcs.Group.Queue;
			abortHelper = new AbortHelper ();
			abortHelper.Connection = this;
			abortHandler = new EventHandler (abortHelper.Abort);
		}
コード例 #4
0
ファイル: WebConnection.cs プロジェクト: henricj/SM.Mono.Net
        //internal ChunkStream ChunkStream
        //{
        //    get { return _chunkStream; }
        //}

        public WebConnection(IWebConnectionState wcs, ServicePoint sPoint)
        {
            _state = wcs;
            _sPoint = sPoint;
            _buffer = new byte[4096];
            Data = new WebConnectionData();
            _queue = wcs.Group.Queue;
            abortHelper = new AbortHelper
            {
                Connection = this
            };
            _abortHandler = abortHelper.Abort;
        }