C# Class Raven.Database.Server.HttpServer

Inheritance: IDisposable
Exibir arquivo Open project: nhsevidence/ravendb Class Usage Examples

Protected Properties

Property Type Description
ResourcesStoresCache DocumentDatabase>.ConcurrentDictionary

Private Properties

Property Type Description
AddAccessControlHeaders void
AddHttpCompressionIfClientCanAcceptIt void
CleanupDatabases void
DispatchRequest bool
FinalizeRequestProcessing void
GetContext void
HandleBadRequest void
HandleConcurrencyException void
HandleException void
HandleGenericException void
HandleIndexDisabledException void
HandleIndexDoesNotExistsException void
HandleTooBusyError void
LogHttpRequestStats void
SetupRequestToProperDatabase void
TenantDatabaseRemoved void

Public Methods

Method Description
Dispose ( ) : void
HandleActualRequest ( IHttpContext ctx ) : void
HttpServer ( IRavenHttpConfiguration configuration, DocumentDatabase resourceStore ) : System
ResetNumberOfRequests ( ) : void
Start ( ) : void

Protected Methods

Method Description
CleanupDatabase ( string db ) : void
OnDispatchingRequest ( IHttpContext ctx ) : void
SerializeError ( IHttpContext ctx, object error ) : void
ShouldLogException ( Exception exception ) : bool
TryGetOrCreateResourceStore ( string tenantId, DocumentDatabase &database ) : bool
TryHandleException ( IHttpContext ctx, Exception exception ) : bool

Private Methods

Method Description
AddAccessControlHeaders ( IHttpContext ctx ) : void
AddHttpCompressionIfClientCanAcceptIt ( IHttpContext ctx ) : void
CleanupDatabases ( object state ) : void
DispatchRequest ( IHttpContext ctx ) : bool
FinalizeRequestProcessing ( IHttpContext ctx, Stopwatch sw, bool ravenUiRequest ) : void
GetContext ( IAsyncResult ar ) : void
HandleBadRequest ( IHttpContext ctx, Raven.Abstractions.Exceptions.BadRequestException e ) : void
HandleConcurrencyException ( IHttpContext ctx, Raven.Abstractions.Exceptions.ConcurrencyException e ) : void
HandleException ( IHttpContext ctx, Exception e ) : void
HandleGenericException ( IHttpContext ctx, Exception e ) : void
HandleIndexDisabledException ( IHttpContext ctx, Raven.Abstractions.Exceptions.IndexDisabledException e ) : void
HandleIndexDoesNotExistsException ( IHttpContext ctx, Exception e ) : void
HandleTooBusyError ( IHttpContext ctx ) : void
LogHttpRequestStats ( LogHttpRequestStatsParams logHttpRequestStatsParams ) : void
SetupRequestToProperDatabase ( IHttpContext ctx ) : void
TenantDatabaseRemoved ( object sender, Raven.Database.Plugins.Builtins.Tenants.RemoveTenantDatabase @event ) : void

Method Details

CleanupDatabase() protected method

protected CleanupDatabase ( string db ) : void
db string
return void

Dispose() public method

public Dispose ( ) : void
return void

HandleActualRequest() public method

public HandleActualRequest ( IHttpContext ctx ) : void
ctx IHttpContext
return void

HttpServer() public method

public HttpServer ( IRavenHttpConfiguration configuration, DocumentDatabase resourceStore ) : System
configuration IRavenHttpConfiguration
resourceStore DocumentDatabase
return System

OnDispatchingRequest() protected method

protected OnDispatchingRequest ( IHttpContext ctx ) : void
ctx IHttpContext
return void

ResetNumberOfRequests() public method

public ResetNumberOfRequests ( ) : void
return void

SerializeError() protected static method

protected static SerializeError ( IHttpContext ctx, object error ) : void
ctx IHttpContext
error object
return void

ShouldLogException() protected method

protected ShouldLogException ( Exception exception ) : bool
exception System.Exception
return bool

Start() public method

public Start ( ) : void
return void

TryGetOrCreateResourceStore() protected method

protected TryGetOrCreateResourceStore ( string tenantId, DocumentDatabase &database ) : bool
tenantId string
database DocumentDatabase
return bool

TryHandleException() protected method

protected TryHandleException ( IHttpContext ctx, Exception exception ) : bool
ctx IHttpContext
exception System.Exception
return bool

Property Details

ResourcesStoresCache protected_oe property

protected ConcurrentDictionary ResourcesStoresCache
return DocumentDatabase>.ConcurrentDictionary