Example #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);
 }
Example #2
0
 public WebConnection(WebConnectionGroup group, ServicePoint sPoint)
 {
     this.sPoint            = sPoint;
     buffer                 = new byte[4096];
     readState              = ReadState.None;
     Data                   = new WebConnectionData();
     initConn               = InitConnection;
     queue                  = group.Queue;
     abortHelper            = new AbortHelper();
     abortHelper.Connection = this;
     abortHandler           = abortHelper.Abort;
 }
Example #3
0
 public WebConnection(WebConnectionGroup group, ServicePoint sPoint)
 {
     this.sPoint = sPoint;
     buffer      = new byte [4096];
     Data        = new WebConnectionData();
     initConn    = new WaitCallback(state => {
         try {
             InitConnection(state);
         } catch {}
     });
     queue                  = group.Queue;
     abortHelper            = new AbortHelper();
     abortHelper.Connection = this;
     abortHandler           = new EventHandler(abortHelper.Abort);
 }
Example #4
0
		public WebConnection (WebConnectionGroup group, ServicePoint sPoint)
		{
			this.sPoint = sPoint;
			buffer = new byte [4096];
			readState = ReadState.None;
			Data = new WebConnectionData ();
			initConn = new WaitCallback (state => {
				try {
					InitConnection (state);
				} catch {}
				});
			queue = group.Queue;
			abortHelper = new AbortHelper ();
			abortHelper.Connection = this;
			abortHandler = new EventHandler (abortHelper.Abort);
		}
Example #5
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);
		}
Example #6
0
        //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;
        }