Beispiel #1
0
        /// <summary>
        ///     Initializes a new project management object.
        /// </summary>
        public BaseProjectManager(string destinationDirectory)
        {
            Options = new Dictionary <string, object>();
            CommonInitialization.OverrideEnvironmentVariables(this);
            TopLevelExtractionDirectory = destinationDirectory;

            if (CommonInitialization.WebClient is HttpClient client)
            {
                WebClient = client;
            }
            else
            {
                throw new NullReferenceException(nameof(WebClient));
            }
        }
 /// <summary>
 /// Initializes a new project management object.
 /// </summary>
 protected BaseProjectManager()
 {
     this.Options = new Dictionary <string, object>();
     CommonInitialization.OverrideEnvironmentVariables(this);
     WebClient = CommonInitialization.WebClient;
 }