private void EndProfile(RequestItem pending, IRestResponse response, EventWaitHandle signal) { TimeSpan elapsed = pending.Elapsed; network.Profile(response, pending.Started, elapsed); network.ProfilePendingRemove(pending); signal.Set(); }
internal override void ProfilePendingRemove(RequestItem requestItem) { periodPending.TryRemove(requestItem.Request, out requestItem); }
internal virtual void ProfilePendingRemove(RequestItem requestItem) { }
internal override RequestItem ProfilePending(IRestRequest request, DateTime start) { var pendingProfile = new RequestItem { Request = request, Started = start }; periodPending.TryAdd(request, pendingProfile); return pendingProfile; }