Ejemplo n.º 1
0
        public virtual ManifestFilter GetManifestFilter()
        {
            ManifestFilter filter = new(Repos);

            if (this is IFilterableOptions options)
            {
                ManifestFilterOptions filterOptions = options.FilterOptions;
                filter.IncludeArchitecture    = filterOptions.Architecture;
                filter.IncludeOsType          = filterOptions.OsType;
                filter.IncludeOsVersions      = filterOptions.OsVersions;
                filter.IncludePaths           = filterOptions.Paths;
                filter.IncludeProductVersions = filterOptions.ProductVersions;
            }

            return(filter);
        }
Ejemplo n.º 2
0
        public virtual ManifestFilter GetManifestFilter()
        {
            ManifestFilter filter = new ManifestFilter()
            {
                IncludeRepo = Repo,
            };

            if (this is IFilterableOptions)
            {
                ManifestFilterOptions filterOptions = ((IFilterableOptions)this).FilterOptions;
                filter.IncludeArchitecture = filterOptions.Architecture;
                filter.IncludeOsType       = filterOptions.OsType;
                filter.IncludeOsVersions   = filterOptions.OsVersions;
                filter.IncludePaths        = filterOptions.Paths;
            }

            return(filter);
        }
Ejemplo n.º 3
0
 public TempManifestOptions(ManifestFilterOptions filterOptions)
 {
     FilterOptions = filterOptions;
 }