Example #1
0
 private void CompleteRequest(ITransceiver client, IRequest request, TimeSpan delay)
 {
     Task.Factory.StartNew(async() =>
     {
         await Task.Delay(delay);
         var response = new Response(request, ProxySubject.EchoValueConst);
         await client.ReceiveAsync(response);
     });
 }