Exemple #1
0
        private static bool ActionIsSatisfiedBy(ActionDescriptor action, ApiVersionModel model, ApiVersion version, ICollection <ActionDescriptor> implicitMatches)
        {
            Contract.Requires(action != null);
            Contract.Requires(implicitMatches != null);

            if (model == null)
            {
                return(false);
            }

            if (action.IsMappedTo(version))
            {
                return(true);
            }

            if (action.IsImplicitlyMappedTo(version))
            {
                implicitMatches.Add(action);
            }

            return(false);
        }