/// <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;
        }
Ejemplo n.º 2
0
        /// <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();
        }
Ejemplo n.º 3
0
        /// <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
        }
Ejemplo n.º 4
0
 /// <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())
 {
 }
Ejemplo n.º 6
0
 public MonitorRequestLogging(ActionExecutingContext actionContext, MvcAgentElement configuration)
 {
     _configuration = configuration;
     _context       = new AgentActionContext(actionContext);
 }