private void InspectSession(Session[] sessions)
        {
            var session        = sessions[0];
            var requestBody    = session.GetRequestBodyAsString();
            var responseBody   = session.GetResponseBodyAsString();
            var requestHeaders = GetHeaders(session.RequestHeaders);

            var timers      = session.Timers;
            var sessionTime = timers.ClientDoneResponse - timers.ClientBeginRequest;

            try
            {
                var inspector    = new Inspector(requestBody, responseBody, requestHeaders, sessionTime);
                var actions      = inspector.GetActionsData();
                var requestData  = inspector.GetRequestData();
                var responseData = inspector.GetResponseData();

                RequestViewModel.Actions   = new ObservableCollection <ActionBase>(actions);
                RequestViewModel.ErrorInfo = responseData.ErrorInfo;
                RequestInfoViewModel.SetSessionData(requestData, responseData, sessionTime, session.RequestBody.Length, session.ResponseBody.Length);
            }
            catch
            {
                RequestViewModel.Actions = new ObservableCollection <ActionBase>();
                RequestInfoViewModel.ClearSessionData();
            }
        }
        public InspectorPresenter()
        {
            RequestViewModel     = new RequestViewModel();
            RequestInfoViewModel = new RequestInfoViewModel();

            View             = new InspectorView();
            View.DataContext = this;
        }
        public InspectorPresenter()
        {
            RequestViewModel = new RequestViewModel();
            RequestInfoViewModel = new RequestInfoViewModel();

            View = new InspectorView();
            View.DataContext = this;
        }