예제 #1
0
        /// <summary>
        /// Gets a value indicating whether a plugin is assumed
        /// to be compatible with the current app version
        /// </summary>
        /// <remarks>
        /// A plugin is generally compatible when both app version and plugin's
        /// <c>MinorAppVersion</c> are equal, OR - when app version is greater - it is
        /// assumed to be compatible when no breaking changes occurred since <c>MinorAppVersion</c>.
        /// </remarks>
        /// <param name="descriptor">The plugin to check</param>
        /// <returns><c>true</c> when the plugin is assumed to be compatible</returns>
        public static bool IsAssumedCompatible(PluginDescriptor descriptor)
        {
            Guard.ArgumentNotNull(() => descriptor);

            return(IsAssumedCompatible(descriptor.MinAppVersion));
        }