Property | Type | Description | |
---|---|---|---|
portForHttp | int |
Property | Type | Description | |
---|---|---|---|
AttemptToOpenPort | bool | ||
EnqueueIncomingRequests | void | ||
GetLocalPathWithoutQuery | string | ||
GetServerStartFailureMessage | string | ||
MakeReply | void | ||
QueueRequest | void | ||
ReportMissingFile | void | ||
RequestProcessorLoop | void | ||
SpinUpAWorker | void | ||
VerifyWeAreNowListening | void |
Method | Description | |
---|---|---|
Dispose ( ) : void | ||
GetContentType ( string extension ) : string | ||
StartListening ( ) : void |
Method | Description | |
---|---|---|
Dispose ( bool fDisposing ) : void | ||
GetLocalPathWithoutQuery ( IRequestInfo info ) : string | ||
IgnoreFileIfMissing ( string localPath ) : bool |
Check for files that may be missing but that we know aren't important enough to complain about.
|
|
IsRecursiveRequestContext ( |
Return true if producing the result requested by the context may involve making additional requests to the server. (See the fuller discussion on the declaration of _threadsDoingRecursiveRequests.)
|
|
ProcessRequest ( IRequestInfo info ) : bool |
This method is overridden in classes inheriting from this class to handle specific request types
|
|
ServerBase ( ) : System |
Method | Description | |
---|---|---|
AttemptToOpenPort ( ) : bool |
Tries to start listening on the currently proposed server url
|
|
EnqueueIncomingRequests ( ) : void |
The _listenerThread runs this method, and exits when the _stop event is raised
|
|
GetLocalPathWithoutQuery ( string localPath ) : string | ||
GetServerStartFailureMessage ( ) : string | ||
MakeReply ( IRequestInfo info ) : void |
This is designed to be easily unit testable by not taking actual HttpContext, but doing everything through this IRequestInfo object
|
|
QueueRequest ( IAsyncResult ar ) : void |
This method is called in the _listenerThread when we obtain an HTTP request from the _listener, and queues it for processing by a worker.
|
|
ReportMissingFile ( IRequestInfo info ) : void | ||
RequestProcessorLoop ( ) : void |
The worker threads run this function
|
|
SpinUpAWorker ( ) : void | ||
VerifyWeAreNowListening ( ) : void |
public static GetContentType ( string extension ) : string | ||
extension | string | |
return | string |
protected static GetLocalPathWithoutQuery ( IRequestInfo info ) : string | ||
info | IRequestInfo | |
return | string |
protected IgnoreFileIfMissing ( string localPath ) : bool | ||
localPath | string | |
return | bool |
protected IsRecursiveRequestContext ( |
||
context | ||
return | bool |
protected ProcessRequest ( IRequestInfo info ) : bool | ||
info | IRequestInfo | |
return | bool |