示例#1
0
        public void EndAccessUrl(HttpResponseMessage response)
        {
            AccessLogEntryViewModel vm = HashMap[response.RequestMessage];

            if (vm != null)
            {
                vm.Status = "完了";
            }
        }
示例#2
0
        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);
        }
示例#3
0
        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);
            }
        }