Method | Description | |
---|---|---|
Dispose ( ) : void |
Implement IDisposable. Do not make this method virtual. A derived class should not be able to override this method.
|
|
HttpServerTransport ( TransferProtocol transferProtocol, int listenPort, IPAddressType ipaddressType, string resource ) : System |
Initializes a new instance of the HttpServerTransport class.
|
|
HttpServerTransport ( TransferProtocol transferProtocol, int listenPort, IPAddressType ipaddressType, string resource, ILogPrinter logger ) : System |
Initializes a new instance of the HttpServerTransport class.
|
|
HttpServerTransport ( TransferProtocol transferProtocol, int listenPort, string resource ) : System |
Initializes a new instance of the HttpServerTransport class.
|
|
Send ( string>.Dictionary |
Send the response message.
|
|
Send ( int statusCode, string>.Dictionary |
Send the response message.
|
|
StartHttpServer ( ) : void |
Start http server to listen and receive the http request.
|
|
StopHttpServer ( ) : void |
Stop http server to listen and receive the http request.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. If disposing equals false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed
|
|
GetListenPrefix ( TransferProtocol transferProtocol, int hostedCacheModeListenPort, string resource ) : string |
Get the listen prefix.
|
|
HttpRequestManagerStart ( ) : void |
The thread start method for http request manager thread.
|
|
RaiseIncomingRequest ( |
The event handle for the received http request.
|
public HttpServerTransport ( TransferProtocol transferProtocol, int listenPort, IPAddressType ipaddressType, string resource ) : System | ||
transferProtocol | TransferProtocol | The transport type will be used |
listenPort | int | The listen port. |
ipaddressType | IPAddressType | The IP address type. |
resource | string | The resource. |
return | System |
public HttpServerTransport ( TransferProtocol transferProtocol, int listenPort, IPAddressType ipaddressType, string resource, ILogPrinter logger ) : System | ||
transferProtocol | TransferProtocol | The transport type will be used |
listenPort | int | The listen port. |
ipaddressType | IPAddressType | The IP address type. |
resource | string | The resource. |
logger | ILogPrinter | The logger. |
return | System |
public HttpServerTransport ( TransferProtocol transferProtocol, int listenPort, string resource ) : System | ||
transferProtocol | TransferProtocol | The transport type will be used |
listenPort | int | The listen port. |
resource | string | The resource. |
return | System |
public Send ( string>.Dictionary |
||
header | string>.Dictionary | Http header. |
payLoadData | byte | The payload data. |
httpListenerContext | The payload data. | |
return | void |
public Send ( int statusCode, string>.Dictionary |
||
statusCode | int | Status code. |
header | string>.Dictionary | Http header. |
payLoadData | byte | The payload data. |
httpListenerContext | The http listener context. | |
needNextRequest | bool | Whether need next request before sending response. |
return | void |