User Tools

Site Tools


thinkgeo.mapsuite.silverlightedition.servercache

ThinkGeo.MapSuite.SilverlightEdition.ServerCache

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

<!– Class –> This class controls the cachablity of the map control at the server side.

Remarks

The &lt;strong&gt;ServerCache&lt;/strong&gt; object contains information for caching map images at the server side. When you set the &lt;strong&gt;CacheDirectory&lt;/strong&gt;, the server cache is automatically turned on. A map image only needs to be generated once and then saved to the folder specified by the &lt;strong&gt;CacheDirectory&lt;/strong&gt;. Later, when the map image is revisited, it is retrieved from the cache folder. Using the server cache will greatly increase the responsiveness of the map, but it is only suitable for a static map.The &lt;strong&gt;ServerCache&lt;/strong&gt; object contains information for caching map images at the server side. When you set the &lt;strong&gt;CacheDirectory&lt;/strong&gt;, the server cache is automatically turned on. A map image only needs to be generated once and then saved to the folder specified by the &lt;strong&gt;CacheDirectory&lt;/strong&gt;. Later, when the map image is revisited, it is retrieved from the cache folder. Using the server cache will greatly increase the responsiveness of the map, but it is only suitable for a static map.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodServerCache Initializes a new instance of the ServerCache class.
Public MethodServerCache String Initializes a new instance of the ServerCache class with the specified cache directory.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary
Public PropertyCacheDirectory String Gets or sets a string that represents the directory of the cache folder.
Public PropertyCacheId String Gets or sets a string which is used to retrieve the cached images.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

ServerCache()

Initializes a new instance of the ServerCache class.

Overloads

Initializes a new instance of the ServerCache class.

Remarks

Parameters

Name Type Description

Go Back

ServerCache(String)

Initializes a new instance of the ServerCache class with the specified cache directory.

Overloads

Initializes a new instance of the ServerCache class.

Remarks

Parameters

Name Type Description
cacheDirectory String<!– System.String –> The directory string that indicates where the cache images are saved to.

Go Back

Protected Constructors

Public Methods

Equals(Object)

Remarks

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Remarks

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetType()

Remarks

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

ToString()

Remarks

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

Finalize()

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MemberwiseClone()

Remarks

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Public Properties

CacheDirectory

Gets or sets a string that represents the directory of the cache folder.

Remarks

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.SilverlightEdition.ServerCache –> Go Back

CacheId

Gets or sets a string which is used to retrieve the cached images.

Remarks

The &lt;strong&gt;CacheId&lt;/strong&gt; is actually the name of a sub-folder of the cache folder to which images with the same CacheId are saved. When you set the same CacheId in different pages, the map images of these pages will be saved and retrieved from the same folder. Thus you can share cache images between pages.The &lt;strong&gt;CacheId&lt;/strong&gt; is actually the name of a sub-folder of the cache folder to which images with the same CacheId are saved. When you set the same CacheId in different pages, the map images of these pages will be saved and retrieved from the same folder. Thus you can share cache images between pages.

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.SilverlightEdition.ServerCache –> Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.silverlightedition.servercache.txt · Last modified: 2017/03/16 21:59 (external edit)