Пример #1
0
        private Type GetControllerType(HttpActionContext actionContext)
        {
            Asserts <ArgumentNullException> .IsNotNull(actionContext.ActionDescriptor);

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

            return(HttpActionContextHelper.GetController(actionContext));
        }
Пример #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)));
 }