public void SendIfRequired(Activity activity) { if (!_specification.IsSatisfiedBy(activity)) { return; } }
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; }
public static RouteDataViewModel Create(Activity activity) { var viewModel = new RouteDataViewModel { Id = activity.Id, RouteDataIgnored = activity.RouteDataIgnored }; Mapper.Map(activity.RouteData, viewModel); return viewModel; }
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); }
public static DetailsViewModel Create(Activity activity) { return Mapper.Map<DetailsViewModel>(activity); }
public void Process(Activity activity) { _context.Activities.Save(activity); _notification.SendIfRequired(activity); }
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); }