C# Class SharpMap.Web.Caching

Class for storing rendered images in the httpcache
Exibir arquivo Open project: jumpinjackie/fdotoolbox

Public Methods

Method Description
InsertIntoCache ( int minutes, System map ) : string

Inserts an image into the HttpCache and returns the cache identifier.

Image can after insertion into the cache be requested by calling getmap.aspx?ID=[identifier]
This requires you to add the following to web.config: Inserting the map into the cache and setting the ImageUrl: string imgID = SharpMap.Web.Caching.CacheMap(5, myMap.GetMap(), Session.SessionID, Context); imgMap.ImageUrl = "getmap.aspx?ID=" + HttpUtility.UrlEncode(imgID);

Method Details

InsertIntoCache() public static method

Inserts an image into the HttpCache and returns the cache identifier.
Image can after insertion into the cache be requested by calling getmap.aspx?ID=[identifier]
This requires you to add the following to web.config: Inserting the map into the cache and setting the ImageUrl: string imgID = SharpMap.Web.Caching.CacheMap(5, myMap.GetMap(), Session.SessionID, Context); imgMap.ImageUrl = "getmap.aspx?ID=" + HttpUtility.UrlEncode(imgID);
public static InsertIntoCache ( int minutes, System map ) : string
minutes int Number of minutes to cache the map
map System Map reference
return string