using System;
using System.Linq;
using System.Collections.Generic;
using Semmle.Util;
namespace Semmle.Extraction.CSharp.DependencyFetching
{
///
/// Dependency fetching related options.
///
public interface IDependencyOptions
{
///
/// The number of threads to use.
///
int Threads { get; }
///
/// The path to the local ".dotnet" directory, if any.
///
string? DotNetPath { get; }
}
public class DependencyOptions : IDependencyOptions
{
public static IDependencyOptions Default => new DependencyOptions();
public int Threads { get; set; } = EnvironmentVariables.GetDefaultNumberOfThreads();
public string? DotNetPath { get; set; } = null;
}
}