C# Class MapAround.Caching.WebTileCacheAccessor

Represents an object that provides an access to the tile cache storing into System.Web.Caching.Cache.
Inheritance: ITileCacheAccessor
Exibir arquivo Open project: gkrsu/maparound.core

Public Methods

Method Description
ExtractTileBytes ( string layer, BoundingRectangle area, string key, string contentType ) : byte[]

Extracts a binary representation of tile from cache.

SaveTileBytes ( string layer, BoundingRectangle area, string key, byte tile, string contentType ) : void

Saves a binary representation of an image into cache.

WebTileCacheAccessor ( Cache cache ) : System.Text

Initializes a new instance of the MapAround.Caching.WebTileCacheAccessor

Private Methods

Method Description
checkCache ( ) : void

Method Details

ExtractTileBytes() public method

Extracts a binary representation of tile from cache.
public ExtractTileBytes ( string layer, BoundingRectangle area, string key, string contentType ) : byte[]
layer string
area BoundingRectangle Area description
key string Access key
contentType string
return byte[]

SaveTileBytes() public method

Saves a binary representation of an image into cache.
public SaveTileBytes ( string layer, BoundingRectangle area, string key, byte tile, string contentType ) : void
layer string
area BoundingRectangle Area description
key string Access key
tile byte Byte array that contains a binary representation of a tile image
contentType string
return void

WebTileCacheAccessor() public method

Initializes a new instance of the MapAround.Caching.WebTileCacheAccessor
public WebTileCacheAccessor ( Cache cache ) : System.Text
cache System.Web.Caching.Cache An instance of the System.Web.Caching.Cache
return System.Text