C# Class Raven.Client.Connection.HttpJsonRequestFactory

Create the HTTP Json Requests to the RavenDB Server and manages the http cache
Inheritance: IDisposable
Afficher le fichier Open project: robashton/ravendb Class Usage Examples

Méthodes publiques

Méthode Description
CreateHttpJsonRequest ( CreateHttpJsonRequestParams createHttpJsonRequestParams ) : HttpJsonRequest

Creates the HTTP json request.

DisableAllCaching ( ) : IDisposable

Disable all caching within the given scope

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ExpireItemsFromCache ( string db ) : void
HttpJsonRequestFactory ( int maxNumberOfCachedRequests ) : System

default ctor

ResetCache ( ) : void

Reset the number of cached requests and clear the entire cache Mostly used for testing

Private Methods

Méthode Description
CacheResponse ( string url, RavenJToken data, NameValueCollection headers ) : void
ConfigureCaching ( string url, string>.Action setHeader ) : CachedRequestOp
GetCachedResponse ( HttpJsonRequest httpJsonRequest, NameValueCollection additionalHeaders = null ) : RavenJToken
IncrementCachedRequests ( ) : void
InvokeLogRequest ( IHoldProfilingInformation sender, Func generateRequestResult ) : void

Invoke the LogRequest event

UpdateCacheTime ( HttpJsonRequest httpJsonRequest ) : void

Method Details

CreateHttpJsonRequest() public méthode

Creates the HTTP json request.
public CreateHttpJsonRequest ( CreateHttpJsonRequestParams createHttpJsonRequestParams ) : HttpJsonRequest
createHttpJsonRequestParams CreateHttpJsonRequestParams
Résultat HttpJsonRequest

DisableAllCaching() public méthode

Disable all caching within the given scope
public DisableAllCaching ( ) : IDisposable
Résultat IDisposable

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

ExpireItemsFromCache() public méthode

public ExpireItemsFromCache ( string db ) : void
db string
Résultat void

HttpJsonRequestFactory() public méthode

default ctor
public HttpJsonRequestFactory ( int maxNumberOfCachedRequests ) : System
maxNumberOfCachedRequests int
Résultat System

ResetCache() public méthode

Reset the number of cached requests and clear the entire cache Mostly used for testing
public ResetCache ( ) : void
Résultat void