public AsyncWorkItem(IWebMap webMap, HttpContext context, AsyncCallback callback, object state) { this._context = context; this._callback = callback; this._webMap = webMap; this._state = state; }
private void EnsureWebMap() { if (_webmap == null) { _webmap = CreateWebMap(); } }
public virtual void ProcessRequest(HttpContext context) { _context = context; context.Response.Clear(); string mime; using (Stream s = this.WebMap.Render(out mime)) { context.Response.ContentType = mime; SetCacheability(context.Response); s.Position = 0; using (BinaryReader br = new BinaryReader(s)) { using (Stream outStream = context.Response.OutputStream) { outStream.Write(br.ReadBytes((int)s.Length), 0, (int)s.Length); } } } _webmap = null; _context = null; }
public WebMapView(IWebMap webMap) { _webMap = webMap; }
private void EnsureWebMap() { if (_webmap == null) _webmap = CreateWebMap(); }