/// <summary>
        /// Inherited from <see cref="ActionFilterAttribute"/>
        /// </summary>
        /// <param name="filterContext"></param>
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            var ctx = contextFactory.CreateContext(HttpContext.Current.Request);

            ContextResolver.SetRequestContext(ctx);
        }
Exemplo n.º 2
0
 public void CreateContextNull()
 {
     Assert.Throws <ArgumentNullException>(() => factory.CreateContext(null));
 }