C# Class SenseNet.Portal.Virtualization.HttpHeaderTools

Afficher le fichier Open project: maxpavlov/FlexNet Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

BeginPurgeUrlsFromProxyWithDelay() public static méthode

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
Résultat void

EndResponseForClientCache() public static méthode

public static EndResponseForClientCache ( System.DateTime lastModificationDate ) : void
lastModificationDate System.DateTime
Résultat void

GetMaxAgeForExtension() public static méthode

public static GetMaxAgeForExtension ( string extension ) : int?
extension string
Résultat int?

PurgeUrlFromProxy() public static méthode

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).
Résultat string[]

PurgeUrlFromProxyAsync() public static méthode

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).
Résultat void

PurgeUrlsFromProxy() public static méthode

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).
Résultat string[]>.Dictionary

SetCacheControlHeaders() public static méthode

public static SetCacheControlHeaders ( int cacheForSeconds ) : void
cacheForSeconds int
Résultat void

SetCacheControlHeaders() public static méthode

public static SetCacheControlHeaders ( int cacheForSeconds, HttpCacheability httpCacheability ) : void
cacheForSeconds int
httpCacheability HttpCacheability
Résultat void