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(); } }
private void Manager_SubmitResponse(NetworkResponse response) { _ = response ?? throw new ArgumentNullException(nameof(response)); EnqueueMessage(response); }