Esempio n. 1
0
        private Type GetControllerType(HttpActionContext actionContext)
        {
            Asserts <ArgumentNullException> .IsNotNull(actionContext.ActionDescriptor);

            Asserts <ArgumentNullException> .IsNotNull(actionContext.ActionDescriptor.ControllerDescriptor);

            return(HttpActionContextHelper.GetController(actionContext));
        }
Esempio n. 2
0
 protected virtual string GetMessage(HttpActionContext actionContext)
 {
     return(string.Format("User='******' '{1}/{2}({3})' Parameters='{4}'",
                          HttpActionContextHelper.GetSessionId(actionContext),
                          HttpActionContextHelper.GetControllerName(actionContext),
                          HttpActionContextHelper.GetActionName(actionContext),
                          HttpActionContextHelper.GetHttpMethod(actionContext),
                          HttpActionContextHelper.GetParameters(actionContext)));
 }