Ejemplo n.º 1
0
        public IEnumerable <PluginRecord> GamePlugins(PackageRecord package)
        {
            var query = PackagePlugins(package)
                        .Where(plugin =>
                               plugin.Type == "octgn.plugin.game"
                               );

            ;

            foreach (var plugin in query)
            {
                yield return(plugin);
            }
        }
Ejemplo n.º 2
0
        public IEnumerable <PluginRecord> PackagePlugins(PackageRecord package)
        {
            if (package == null)
            {
                throw new ArgumentNullException(nameof(package));
            }

            var query = Plugins
                        .Where(plugin =>
                               plugin.PackageId == package.Id &&
                               plugin.PackageVersion == package.Version
                               );

            ;

            foreach (var plugin in query)
            {
                yield return(plugin);
            }
        }