Esempio n. 1
0
 public AsyncWorkItem(IWebMap webMap, HttpContext context, AsyncCallback callback, object state)
 {
     this._context  = context;
     this._callback = callback;
     this._webMap   = webMap;
     this._state    = state;
 }
Esempio n. 2
0
 private void EnsureWebMap()
 {
     if (_webmap == null)
     {
         _webmap = CreateWebMap();
     }
 }
Esempio n. 3
0
            public AsyncWorkItem(IWebMap webMap, HttpContext context, AsyncCallback callback, object state)
            {
                this._context = context;
                this._callback = callback;
                this._webMap = webMap;
                this._state = state;

            }
Esempio n. 4
0
        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;
        }
Esempio n. 5
0
        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;
        }
Esempio n. 6
0
 public WebMapView(IWebMap webMap)
 {
     _webMap = webMap;
 }
Esempio n. 7
0
 private void EnsureWebMap()
 {
     if (_webmap == null)
         _webmap = CreateWebMap();
 }
Esempio n. 8
0
 public WebMapView(IWebMap webMap)
 {
     _webMap = webMap;
 }