C# Class ClearCanvas.Server.ShredHost.HttpListenerShred

Represents a shred that listens to and handles http requests.
Inheritance: ClearCanvas.Common.Shreds.Shred
Show file Open project: jasper-yeh/ClearCanvas

Public Methods

Method Description
Stop ( ) : void

Protected Methods

Method Description
HttpListenerShred ( int port, string uriSubPath ) : System

Creates an instance of HttpListenerShred to listern at the specified address.

OnStartError ( string errorMessage ) : void
OnStarted ( ) : void
StartListeningAsync ( Action callback ) : void

Private Methods

Method Description
ListenAsync ( Action callback ) : void
ListenSync ( Action callback ) : void
ProcessRequest ( HttpListenerContext context, Action callback ) : void
StartListener ( Action callback ) : void
StartListening ( object callback ) : void
StopListener ( ) : void

Method Details

HttpListenerShred() protected method

Creates an instance of HttpListenerShred to listern at the specified address.
protected HttpListenerShred ( int port, string uriSubPath ) : System
port int
uriSubPath string
return System

OnStartError() protected method

protected OnStartError ( string errorMessage ) : void
errorMessage string
return void

OnStarted() protected method

protected OnStarted ( ) : void
return void

StartListeningAsync() protected method

protected StartListeningAsync ( Action callback ) : void
callback Action
return void

Stop() public method

public Stop ( ) : void
return void