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

Inheritance: IAsyncCommandDispatcher
Mostra file Open project: MindTouch/MindTouch.Clacks Class Usage Examples

Public Methods

Method Description
AddCommand ( string command, Action>.Action handler, DataExpectation dataExpectation ) : void
AddCommand ( string command, Action handler, DataExpectation dataExpectation ) : void
Default ( Action handler ) : void
Disconnect ( string command, Action handler ) : void
Error ( Action handler ) : void
GetHandler ( IPEndPoint client, string commandArgs ) : IAsyncCommandHandler

Private Methods

Method Description
BuildDisconnectHandler ( ) : IAsyncCommandHandler

Method Details

AddCommand() public method

public AddCommand ( string command, Action>.Action handler, DataExpectation dataExpectation ) : void
command string
handler Action>.Action
dataExpectation DataExpectation
return void

AddCommand() public method

public AddCommand ( string command, Action handler, DataExpectation dataExpectation ) : void
command string
handler Action
dataExpectation DataExpectation
return void

Default() public method

public Default ( Action handler ) : void
handler Action
return void

Disconnect() public method

public Disconnect ( string command, Action handler ) : void
command string
handler Action
return void

Error() public method

public Error ( Action handler ) : void
handler Action
return void

GetHandler() public method

public GetHandler ( IPEndPoint client, string commandArgs ) : IAsyncCommandHandler
client System.Net.IPEndPoint
commandArgs string
return IAsyncCommandHandler