/// <summary> /// Gets the key used for mapping a given record request's with its response. /// </summary> /// <param name="record">The record entry containing the request info</param> /// <returns>The key used for the mapping.</returns> public string GetMatchingKey(HttpResponseRecord record) { return(GetMatchingKey(record.RequestMethod, (record.EncodedReqeustAddress ?? Convert.ToBase64String(Encoding.UTF8.GetBytes(record.RequestUri.PathAndQuery))), record.RequestHeaders)); }