コード例 #1
0
ファイル: LoggingAttribute.cs プロジェクト: ni11c/AkkaJobs
        private Type GetControllerType(HttpActionContext actionContext)
        {
            Asserts <ArgumentNullException> .IsNotNull(actionContext.ActionDescriptor);

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

            return(HttpActionContextHelper.GetController(actionContext));
        }
コード例 #2
0
ファイル: LoggingAttribute.cs プロジェクト: ni11c/AkkaJobs
 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)));
 }