C# Class Tempest.MessageResponseManager

Mostra file Open project: ermau/Tempest

Public Methods

Method Description
CheckTimeouts ( ) : void

Checks for any message responses that have timed out and cancels them.

Clear ( ) : void
Receive ( Message message ) : void
SendFor ( Message message, Func sender ) : Task
SendFor ( Message message, Func sender, CancellationToken cancelToken ) : Task
SendFor ( Message message, Func sender, int timeout ) : Task
SendFor ( Message message, Task sendTask ) : Task
SendFor ( Message message, Task sendTask, CancellationToken cancelToken ) : Task
SendFor ( Message message, Task sendTask, int timeout ) : Task

Private Methods

Method Description
SendForCore ( Message message, Func sender = null, Task sendTask = null ) : Task

Method Details

CheckTimeouts() public method

Checks for any message responses that have timed out and cancels them.
public CheckTimeouts ( ) : void
return void

Clear() public method

public Clear ( ) : void
return void

Receive() public method

public Receive ( Message message ) : void
message Message
return void

SendFor() public method

public SendFor ( Message message, Func sender ) : Task
message Message
sender Func
return Task

SendFor() public method

public SendFor ( Message message, Func sender, CancellationToken cancelToken ) : Task
message Message
sender Func
cancelToken System.Threading.CancellationToken
return Task

SendFor() public method

public SendFor ( Message message, Func sender, int timeout ) : Task
message Message
sender Func
timeout int
return Task

SendFor() public method

public SendFor ( Message message, Task sendTask ) : Task
message Message
sendTask Task
return Task

SendFor() public method

public SendFor ( Message message, Task sendTask, CancellationToken cancelToken ) : Task
message Message
sendTask Task
cancelToken System.Threading.CancellationToken
return Task

SendFor() public method

public SendFor ( Message message, Task sendTask, int timeout ) : Task
message Message
sendTask Task
timeout int
return Task