C# Class Tempest.Tests.MockServerConnection

Inheritance: MockConnection, IServerConnection
显示文件 Open project: ermau/Tempest Class Usage Examples

Public Methods

Method Description
SendAsync ( Message message ) : Task
SendResponseAsync ( Message originalMessage, Message response ) : Task

Protected Methods

Method Description
Disconnect ( ConnectionResult reason = ConnectionResult.FailedUnknown, string customReason = null ) : Task

Private Methods

Method Description
MockServerConnection ( MockClientConnection connection ) : System

Method Details

Disconnect() protected method

protected Disconnect ( ConnectionResult reason = ConnectionResult.FailedUnknown, string customReason = null ) : Task
reason ConnectionResult
customReason string
return Task

SendAsync() public method

public SendAsync ( Message message ) : Task
message Message
return Task

SendResponseAsync() public method

public SendResponseAsync ( Message originalMessage, Message response ) : Task
originalMessage Message
response Message
return Task