Example #1
0
 public void SetResponse(NetworkResponse response)
 {
     _ = response ?? throw new ArgumentNullException(nameof(response));
     if (calls.TryGetValue(response.Token, out Call call))
     {
         call.Response = response;
         call.CancellationToken.Cancel();
     }
 }
Example #2
0
 private void Manager_SubmitResponse(NetworkResponse response)
 {
     _ = response ?? throw new ArgumentNullException(nameof(response));
     EnqueueMessage(response);
 }