public void Receive(RestProtocolResponse <TResponse> response) { var id = response.id; if (!_requests.ContainsKey(id)) { throw new Exception(string.Format("[RestProtocolQueue] not contains id '{0}'", id)); } _requests[id].Done = true; _requests[id].Response = response; }
public Request() { Done = false; Response = null; }