예제 #1
0
 public void SendIfRequired(Activity activity)
 {
     if (!_specification.IsSatisfiedBy(activity))
     {
         return;
     }
 }
예제 #2
0
 public Activity Collect(HttpApplication application, IMonitorBehavior behavior, Activity activity)
 {
     var context = new DataCollectionContext(activity, behavior, application);
     CollectRequestData(context);
     CollectAuthenticationData(context);
     CollectExceptionData(context);
     CollectResponseData(context);
     return activity;
 }
예제 #3
0
 public static RouteDataViewModel Create(Activity activity)
 {
     var viewModel = new RouteDataViewModel
                         {
                             Id = activity.Id,
                             RouteDataIgnored = activity.RouteDataIgnored
                         };
     Mapper.Map(activity.RouteData, viewModel);
     return viewModel;
 }
예제 #4
0
        public virtual ActionResult Index(string id)
        {
            var activity = Context.Activities.Get(id);
            if (activity == null)
            {
                return HttpNotFound();
            }

            CurrentActivity = activity;
            var model = new ActivityViewModel {HasRouteData = CurrentActivity.RouteDataIgnored || CurrentActivity.RouteData != null};

            return PartialView(model);
        }
예제 #5
0
 public static DetailsViewModel Create(Activity activity)
 {
     return Mapper.Map<DetailsViewModel>(activity);
 }
예제 #6
0
 public void Process(Activity activity)
 {
     _context.Activities.Save(activity);
     _notification.SendIfRequired(activity);
 }
예제 #7
0
 public DataCollectionContext(Activity activity, IMonitorBehavior behavior, HttpApplication application)
 {
     Activity = activity;
     Behavior = behavior;
     Application = application;
 }
 public bool IsSatisfiedBy(Activity activity)
 {
     return activity.Status == ActivityStatus.Failure &&
            activity.FailureDeterminedBy == FailureDeterminedBy.Exception;
 }
 public static SearchResultItemViewModel Create(Activity activity)
 {
     return Mapper.Map<SearchResultItemViewModel>(activity);
 }