public void EndAccessUrl(HttpResponseMessage response) { AccessLogEntryViewModel vm = HashMap[response.RequestMessage]; if (vm != null) { vm.Status = "完了"; } }
public void StartAccessUrl(HttpRequestMessage request) { string url = request.RequestUri.OriginalString; AccessLogEntryViewModel vm = new AccessLogEntryViewModel(); vm.Status = "接続中"; vm.Url = url; HashMap[request] = vm; LogEntries.Add(vm); }
public void StartAccessUrl(HttpRequestMessage request) { string url = request.RequestUri.OriginalString; AccessLogEntryViewModel vm = new AccessLogEntryViewModel(); vm.Status = "接続中"; vm.Url = url; lock (HashMap) { HashMap[request] = vm; LogEntries.Add(vm); } }