コード例 #1
0
 public static Type GetReturnType(this ActionDescriptor actionDescriptor)
 {
     return(actionDescriptor.GetMethodInfo().ReturnType);
 }
コード例 #2
0
 public static UnitOfWorkAttribute GetUnitOfWorkAttributeOrNull(this ActionDescriptor actionDescriptor)
 {
     return(actionDescriptor.GetMethodInfo().GetUnitOfWorkAttributeOrNull());
 }
コード例 #3
0
        protected virtual bool IsRemoteService(ActionDescriptor actionDescriptor)
        {
            var remoteServiceAttr = ReflectionHelper.GetSingleAttributeOfMemberOrDeclaringTypeOrDefault <RemoteServiceAttribute>(actionDescriptor.GetMethodInfo());

            return(remoteServiceAttr != null && remoteServiceAttr.IsEnabled);
        }