protected override bool Filter(Type type) { if (type.IsAbstract) { return(false); } return (ServicesControllerAttribute.IsPresentOn(type) || ServicesApiController.IsServicesController(type)); }
public static ITracker GetTracker(this ServicesApiController controller, bool trackRequest = false) { if (IsContextInvalid()) { Tracker.StartTracking(); if (IsContextInvalid()) { throw new ArgumentException("Context is invalid"); } if (!trackRequest) { Tracker.Current.CurrentPage.Cancel(); } } return(Tracker.Current); }