C# Class DotNetWorkQueue.QueueStatus.QueueStatusHttp

Returns queue status information, via listening on an HTTP port
Inheritance: IQueueStatus
Afficher le fichier Open project: blehnen/DotNetWorkQueue

Méthodes publiques

Méthode Description
AddStatusProvider ( IQueueStatusProvider provider ) : void

Adds a status provider

Dispose ( ) : void

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

QueueStatusHttp ( QueueStatusHttpConfiguration configuration, IConfiguration additionalConfiguration, IInternalSerializer serializer, ILogFactory log ) : System

Initializes a new instance of the QueueStatusHttp class.

Start ( ) : void

Starts this instance.

Méthodes protégées

Méthode Description
ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

Private Methods

Méthode Description
AcceptsGzip ( HttpListenerRequest request ) : bool

Returns true if the requester accepts gzip content.

AddCorsHeaders ( HttpListenerResponse response ) : void

Adds the cors headers.

AddNoCacheHeaders ( HttpListenerResponse response ) : void

Adds the no cache headers.

Dispose ( bool disposing ) : void
ParsePath ( string listenerUriPrefix ) : string

Parses the prefix path.

ProcessRequest ( ) : Task

Processes the requests.

ProcessRequest ( HttpListenerContext context ) : Task

Processes the request.

Stop ( ) : void

Stops this instance.

WriteNotFound ( HttpListenerContext context ) : Task

Writes the not found reply.

WritePong ( HttpListenerContext context ) : Task

Writes the reply to a ping.

WriteStatus ( HttpListenerContext context ) : Task

Writes the status.

WriteString ( HttpListenerContext context, string data, string contentType, int httpStatus = 200, string httpStatusDescription = "OK" ) : Task

Writes the string.

Method Details

AddStatusProvider() public méthode

Adds a status provider
public AddStatusProvider ( IQueueStatusProvider provider ) : void
provider IQueueStatusProvider The provider.
Résultat void

Dispose() public méthode

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

QueueStatusHttp() public méthode

Initializes a new instance of the QueueStatusHttp class.
public QueueStatusHttp ( QueueStatusHttpConfiguration configuration, IConfiguration additionalConfiguration, IInternalSerializer serializer, ILogFactory log ) : System
configuration DotNetWorkQueue.Configuration.QueueStatusHttpConfiguration The configuration.
additionalConfiguration IConfiguration The additional configuration.
serializer IInternalSerializer The serializer.
log ILogFactory The log.
Résultat System

Start() public méthode

Starts this instance.
public Start ( ) : void
Résultat void

ThrowIfDisposed() protected méthode

Throws an exception if this instance has been disposed.
protected ThrowIfDisposed ( [ name = "" ) : void
name [ The name.
Résultat void