示例#1
0
        internal async Task StoreCachedResponseAsync(HttpRequestMessage request, HttpResponseMessage freshResponse)
        {
            var cachedResponse = new CachedRequestResponse
            {
                Request  = await Serializer.Serialize(request),
                Response = await Serializer.Serialize(freshResponse)
            };

            StoreEntry(cachedResponse);
        }
示例#2
0
 private void StoreEntry(CachedRequestResponse entry)
 {
     storedEntries.Enqueue(entry);
 }