C# Class SenseNet.Portal.Virtualization.HttpHeaderTools

ファイルを表示 Open project: maxpavlov/FlexNet Class Usage Examples

Public Methods

Method Description
BeginPurgeUrlsFromProxyWithDelay ( IEnumerable urls ) : void

Starts an async thread that will start purging urls after a specified delay. Delay is configured with PurgeUrlDelayInSeconds key in web.config.

EndResponseForClientCache ( System.DateTime lastModificationDate ) : void
GetMaxAgeForExtension ( string extension ) : int?
PurgeUrlFromProxy ( string url ) : string[]

Sends a PURGE request to all of the configured proxy servers for the given url. Purge request is synchronous and result is processed.

PurgeUrlFromProxyAsync ( string url ) : void

Sends a PURGE request to all of the configured proxy servers for the given url. Purge request is asynchronous and result is not processed.

PurgeUrlsFromProxy ( IEnumerable urls ) : string[]>.Dictionary

Sends a PURGE request to all of the configured proxy servers for the given urls. Purge requests are synchronous.

SetCacheControlHeaders ( int cacheForSeconds ) : void
SetCacheControlHeaders ( int cacheForSeconds, HttpCacheability httpCacheability ) : void

Private Methods

Method Description
IsClientCached ( System.DateTime contentModified ) : bool
PurgeUrlFromProxy ( string url, bool async ) : string[]
PurgeUrlsFromProxyAsyncWithDelay ( IEnumerable urls ) : void

Method Details

BeginPurgeUrlsFromProxyWithDelay() public static method

Starts an async thread that will start purging urls after a specified delay. Delay is configured with PurgeUrlDelayInSeconds key in web.config.
public static BeginPurgeUrlsFromProxyWithDelay ( IEnumerable urls ) : void
urls IEnumerable
return void

EndResponseForClientCache() public static method

public static EndResponseForClientCache ( System.DateTime lastModificationDate ) : void
lastModificationDate System.DateTime
return void

GetMaxAgeForExtension() public static method

public static GetMaxAgeForExtension ( string extension ) : int?
extension string
return int?

PurgeUrlFromProxy() public static method

Sends a PURGE request to all of the configured proxy servers for the given url. Purge request is synchronous and result is processed.
public static PurgeUrlFromProxy ( string url ) : string[]
url string Url of the content that needs to be purged. It must start with the host name (e.g. www.example.com/mycontent/myimage.jpg).
return string[]

PurgeUrlFromProxyAsync() public static method

Sends a PURGE request to all of the configured proxy servers for the given url. Purge request is asynchronous and result is not processed.
public static PurgeUrlFromProxyAsync ( string url ) : void
url string Url of the content that needs to be purged. It must start with the host name (e.g. www.example.com/mycontent/myimage.jpg).
return void

PurgeUrlsFromProxy() public static method

Sends a PURGE request to all of the configured proxy servers for the given urls. Purge requests are synchronous.
public static PurgeUrlsFromProxy ( IEnumerable urls ) : string[]>.Dictionary
urls IEnumerable Urls of the content that needs to be purged. The urls must start with the host name (e.g. www.example.com/mycontent/myimage.jpg).
return string[]>.Dictionary

SetCacheControlHeaders() public static method

public static SetCacheControlHeaders ( int cacheForSeconds ) : void
cacheForSeconds int
return void

SetCacheControlHeaders() public static method

public static SetCacheControlHeaders ( int cacheForSeconds, HttpCacheability httpCacheability ) : void
cacheForSeconds int
httpCacheability HttpCacheability
return void