C# Класс SenseNet.Portal.Virtualization.HttpHeaderTools

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
IsClientCached ( System.DateTime contentModified ) : bool
PurgeUrlFromProxy ( string url, bool async ) : string[]
PurgeUrlsFromProxyAsyncWithDelay ( IEnumerable urls ) : void

Описание методов

BeginPurgeUrlsFromProxyWithDelay() публичный статический Метод

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
Результат void

EndResponseForClientCache() публичный статический Метод

public static EndResponseForClientCache ( System.DateTime lastModificationDate ) : void
lastModificationDate System.DateTime
Результат void

GetMaxAgeForExtension() публичный статический Метод

public static GetMaxAgeForExtension ( string extension ) : int?
extension string
Результат int?

PurgeUrlFromProxy() публичный статический Метод

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).
Результат string[]

PurgeUrlFromProxyAsync() публичный статический Метод

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).
Результат void

PurgeUrlsFromProxy() публичный статический Метод

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).
Результат string[]>.Dictionary

SetCacheControlHeaders() публичный статический Метод

public static SetCacheControlHeaders ( int cacheForSeconds ) : void
cacheForSeconds int
Результат void

SetCacheControlHeaders() публичный статический Метод

public static SetCacheControlHeaders ( int cacheForSeconds, HttpCacheability httpCacheability ) : void
cacheForSeconds int
httpCacheability HttpCacheability
Результат void