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); }
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); }
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); }
//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; }