C# Класс Raven.Client.Connection.HttpJsonRequestFactory

Create the HTTP Json Requests to the RavenDB Server and manages the http cache
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

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

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

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

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

CreateHttpJsonRequest() публичный Метод

Creates the HTTP json request.
public CreateHttpJsonRequest ( CreateHttpJsonRequestParams createHttpJsonRequestParams ) : HttpJsonRequest
createHttpJsonRequestParams CreateHttpJsonRequestParams
Результат HttpJsonRequest

DisableAllCaching() публичный Метод

Disable all caching within the given scope
public DisableAllCaching ( ) : IDisposable
Результат IDisposable

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

ExpireItemsFromCache() публичный Метод

public ExpireItemsFromCache ( string db ) : void
db string
Результат void

HttpJsonRequestFactory() публичный Метод

default ctor
public HttpJsonRequestFactory ( int maxNumberOfCachedRequests ) : System
maxNumberOfCachedRequests int
Результат System

ResetCache() публичный Метод

Reset the number of cached requests and clear the entire cache Mostly used for testing
public ResetCache ( ) : void
Результат void