Exemplo n.º 1
0
    async Task DoTransactions(FakeSocketProvider.FakeSocket socket, FakeSocketProvider.FakeSocket client)
    {
        var content = await socket.ReceiveAsync(client);

        var message = _listener == null ? content : _listener?.ProcessMessage(content);

        await socket.SendAsync(client, message);
    }
Exemplo n.º 2
0
 public async Task <string> ReceiveAsync()
 {
     return(await _socket.ReceiveAsync(_socket.ConnectedSocket));
 }