C# Class MindTouch.Clacks.Server.Async.AsyncClientHandler

Inheritance: AClientRequestHandler
Exibir arquivo Open project: MindTouch/MindTouch.Clacks

Public Methods

Method Description
AsyncClientHandler ( System.Guid clientId, Socket socket, IAsyncCommandDispatcher dispatcher, IClacksInstrumentation instrumentation, Action removeCallback ) : System
ProcessRequests ( ) : void

Protected Methods

Method Description
CompleteRequest ( ) : void
InitializeHandler ( string command ) : string
ProcessCommand ( ) : void
Receive ( int>.Action continuation ) : void
SendResponse ( ) : void

Private Methods

Method Description
ProcessResponse ( IResponse response, System.Action nextResponseCallback ) : void

Method Details

AsyncClientHandler() public method

public AsyncClientHandler ( System.Guid clientId, Socket socket, IAsyncCommandDispatcher dispatcher, IClacksInstrumentation instrumentation, Action removeCallback ) : System
clientId System.Guid
socket System.Net.Sockets.Socket
dispatcher IAsyncCommandDispatcher
instrumentation IClacksInstrumentation
removeCallback Action
return System

CompleteRequest() protected method

protected CompleteRequest ( ) : void
return void

InitializeHandler() protected method

protected InitializeHandler ( string command ) : string
command string
return string

ProcessCommand() protected method

protected ProcessCommand ( ) : void
return void

ProcessRequests() public method

public ProcessRequests ( ) : void
return void

Receive() protected method

protected Receive ( int>.Action continuation ) : void
continuation int>.Action
return void

SendResponse() protected method

protected SendResponse ( ) : void
return void