C# Класс DotNetWorkQueue.QueueStatus.QueueStatusHttp

Returns queue status information, via listening on an HTTP port
Наследование: IQueueStatus
Показать файл Открыть проект

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

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

Защищенные методы

Метод Описание
ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

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

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

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

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

Adds a status provider
public AddStatusProvider ( IQueueStatusProvider provider ) : void
provider IQueueStatusProvider The provider.
Результат void

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

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

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

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.
Результат System

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

Starts this instance.
public Start ( ) : void
Результат void

ThrowIfDisposed() защищенный Метод

Throws an exception if this instance has been disposed.
protected ThrowIfDisposed ( [ name = "" ) : void
name [ The name.
Результат void