Example #1
0
        public VSCodeSoftwareProvider(
            IDependencyConfigurationProvider dependencyConfigurationProvider,
            IOperatingSystemProvider operatingSystemProvider)
            : base(dependencyConfigurationProvider, operatingSystemProvider)

        {
        }
 protected SoftwareProviderBase(
     IDependencyConfigurationProvider dependencyConfigurationProvider,
     IOperatingSystemProvider operatingSystemProvider)
 {
     this.dependencyConfigurationProvider = dependencyConfigurationProvider;
     this.operatingSystemProvider         = operatingSystemProvider;
 }
 public SoftwarePackage(
     string packageName,
     IEnumerable <string> dependencies,
     ISoftwareProvider provider,
     IOperatingSystemProvider operatingSystem,
     string?name = null)
 {
     PackageName          = packageName;
     Dependencies         = dependencies;
     Name                 = name;
     this.provider        = provider;
     this.operatingSystem = operatingSystem;
 }
        public SoftwarePackage(
            KeyValuePair <object, object> yaml,
            ISoftwareProvider provider,
            IOperatingSystemProvider operatingSystem)
        {
            if (yaml.Key is string key)
            {
                PackageName = key;
            }
            else
            {
                PackageName = string.Empty;
                throw new Exception("YAML key is not a string");
            }

            if (yaml.Value is Dictionary <object, object> dict)
            {
                if (dict.ContainsKey("name") && dict["name"] is string name)
                {
                    Name = name;
                }

                if (dict.ContainsKey("dependencies"))
                {
                    Dependencies = (from d in dict["dependencies"] as List <object>
                                    select d as string).ToList();
                }
            }

            this.provider        = provider;
            this.operatingSystem = operatingSystem;

            if (Dependencies == null)
            {
                Dependencies = Enumerable.Empty <string>();
            }
        }
 internal OfficialFFmpegDownloader(IOperatingSystemProvider operatingSystemProvider) : base(operatingSystemProvider)
 {
     _linkProvider = new LinkProvider(operatingSystemProvider);
 }
Example #6
0
 protected FFmpegDownloaderBase(IOperatingSystemProvider operatingSystemProvider)
 {
     _operatingSystemProvider = operatingSystemProvider;
 }
 internal SharedFFmpegDownloader(IOperatingSystemProvider operatingSystemProvider) : base(operatingSystemProvider)
 {
 }
 public WindowsFeatureSoftwareProvider(
     IDependencyConfigurationProvider dependencyConfigurationProvider,
     IOperatingSystemProvider operatingSystemProvider)
     : base(dependencyConfigurationProvider, operatingSystemProvider)
 {
 }
Example #9
0
 internal LinkProvider()
 {
     _operatingSystemProvider = new OperatingSystemProvider();
 }
Example #10
0
 internal LinkProvider(IOperatingSystemProvider operatingSystemProvider)
 {
     _operatingSystemProvider = operatingSystemProvider;
 }
 protected FileSoftwareProviderBase(
     IDependencyConfigurationProvider dependencyConfigurationProvider,
     IOperatingSystemProvider operatingSystemProvider)
     : base(dependencyConfigurationProvider, operatingSystemProvider)
 {
 }
Example #12
0
 protected FFmpegDownloaderBase()
 {
     _operatingSystemProvider             = new OperatingSystemProvider();
     _operatingSystemArchitectureProvider = new OperatingSystemArchitectureProvider();
 }
Example #13
0
 internal FullFFmpegDownloader(IOperatingSystemProvider operatingSystemProvider = default) : base(operatingSystemProvider)
 {
 }