-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d489d90
commit 6bcd444
Showing
7 changed files
with
55 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Xtb.XApi; | ||
|
||
/// <summary> | ||
/// Remote client interface for single endpoint. | ||
/// </summary> | ||
public interface IClient : IConnectable, ISender, IReceiver | ||
{ | ||
/// <summary> | ||
/// Send a message to the remote endpoint and wait for response. | ||
/// </summary> | ||
/// <param name="message">Message to send.</param> | ||
/// <returns>Response from the endpoint.</returns> | ||
string SendMessageWaitResponse(string message); | ||
|
||
/// <summary> | ||
/// Send a message to the remote endpoint. | ||
/// </summary> | ||
/// <param name="message">A message to send.</param> | ||
/// <param name="cancellationToken">Token to cancel operation.</param> | ||
/// <returns>Response from the endpoint.</returns> | ||
Task<string> SendMessageWaitResponseAsync(string message, CancellationToken cancellationToken = default); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters