コード例 #1
0
 public void Handle()
 {
     var requestModel = new RecordedRequestRequestModel {Id = _report.Id};
     _request.Set(requestModel);
     _partialFactory
         .BuildPartial(requestModel.GetType())
         .InvokePartial();
 }
コード例 #2
0
 public void Handle()
 {
     // TODO -- Reevaluate this.  Hokey.  Maybe just do a FubuContinuation(?)
     var requestModel = new RecordedRequestRequestModel {Id = _report.Id};
     _request.Set(requestModel);
     _partialFactory
         .BuildPartial(requestModel.GetType())
         .InvokePartial();
 }
コード例 #3
0
        public void Handle()
        {
            var requestModel = new RecordedRequestRequestModel {
                Id = _report.Id
            };

            _request.Set(requestModel);
            _partialFactory
            .BuildPartial(requestModel.GetType())
            .InvokePartial();
        }
コード例 #4
0
ファイル: get_Id_handler.cs プロジェクト: pedroreys/fubumvc
        public RequestDetailsModel Execute(RecordedRequestRequestModel request)
        {
            var report = _requestCache.RecentReports().SingleOrDefault(r => r.Id == request.Id);
            if(report == null)
            {
                throw new ArgumentException("{0} does not exist".ToFormat(request.Id));
            }

            var model = new RequestDetailsModel
                            {
                                Report = report,
                                Root = Gather(report)
                            };
            return model;
        }
コード例 #5
0
        public RequestDetailsModel Get(RecordedRequestRequestModel request)
        {
            var report = _requestCache.RecentReports().SingleOrDefault(r => r.Id == request.Id);

            if (report == null)
            {
                throw new UnknownObjectException(request.Id);
            }

            var model = new RequestDetailsModel
            {
                Report = report,
                Root   = Gather(report)
            };

            return(model);
        }
コード例 #6
0
ファイル: get_Id_handler.cs プロジェクト: jemacom/fubumvc
        public RequestDetailsModel Execute(RecordedRequestRequestModel request)
        {
            var report = _requestCache.RecentReports().SingleOrDefault(r => r.Id == request.Id);
            if(report == null)
            {
                throw new ArgumentException("{0} does not exist".ToFormat(request.Id));
            }

            var model = new RequestDetailsModel
                            {
                                Report = report,
                                Root = Gather(report),
                                Chain = _chainVisualizer.VisualizerFor(report.BehaviorId),
                                Logs = report
                                    .Steps
                                    .Where(s => s.Details is RequestLogEntry)
                                    .Select(s => s.Details)
                                    .Cast<RequestLogEntry>()
                                    .ToList()
                            };
            return model;
        }
コード例 #7
0
        public RequestDetailsModel Execute(RecordedRequestRequestModel request)
        {
            var report = _requestCache.RecentReports().SingleOrDefault(r => r.Id == request.Id);

            if (report == null)
            {
                throw new ArgumentException("{0} does not exist".ToFormat(request.Id));
            }

            var model = new RequestDetailsModel
            {
                Report = report,
                Root   = Gather(report),
                Chain  = _chainVisualizer.VisualizerFor(report.BehaviorId),
                Logs   = report
                         .Steps
                         .Where(s => s.Details is RequestLogEntry)
                         .Select(s => s.Details)
                         .Cast <RequestLogEntry>()
                         .ToList()
            };

            return(model);
        }