/// <summary> /// Monitor MVC requests using the provided configuration settings /// </summary> /// <param name="configuration"></param> public UnhandledExceptionAttribute(MvcAgentElement configuration) { if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } _configuration = configuration; }
/// <summary> /// Monitor MVC requests using the provided configuration settings /// </summary> /// <param name="configuration"></param> public WebApiRequestMonitorAttribute(MvcAgentElement configuration) { if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } _configuration = configuration; _urlCheck = new UrlCheck(); }
/// <summary> /// Monitor MVC requests using the provided configuration settings /// </summary> /// <param name="configuration"></param> public MvcRequestMonitorAttribute(MvcAgentElement configuration) { if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } _configuration = configuration; _urlCheck = new UrlCheck(); Order = 0; //so we run first and last in general }
/// <summary> /// Monitor MVC requests using the site-wide configuration settings /// </summary> public WebApiRequestMonitorAttribute() : this(MvcAgentElement.SafeLoad()) { }
/// <summary> /// Monitor MVC requests using the site-wide configuration settings /// </summary> public UnhandledExceptionAttribute() : this(MvcAgentElement.SafeLoad()) { }
public MonitorRequestLogging(ActionExecutingContext actionContext, MvcAgentElement configuration) { _configuration = configuration; _context = new AgentActionContext(actionContext); }