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

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