Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NuGetPackageContentResolver"/> class.
 /// </summary>
 /// <param name="fileSystem">The file system.</param>
 /// <param name="locator">The locator.</param>
 public NuGetPackageContentResolver(
     IFileSystem fileSystem,
     INuGetPackageAssembliesLocator locator)
 {
     _fileSystem = fileSystem;
     _locator    = locator;
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ScriptProcessor"/> class.
        /// </summary>
        /// <param name="fileSystem">The file system.</param>
        /// <param name="environment">The environment.</param>
        /// <param name="log">The log.</param>
        /// <param name="installer">The NuGet package installer.</param>
        /// <param name="assembliesLocator">the nuget assemblies locator.</param>
        public ScriptProcessor(
            IFileSystem fileSystem,
            ICakeEnvironment environment,
            ICakeLog log,
            INuGetPackageInstaller installer,
            INuGetPackageAssembliesLocator assembliesLocator)
        {
            if (fileSystem == null)
            {
                throw new ArgumentNullException("fileSystem");
            }
            if (environment == null)
            {
                throw new ArgumentNullException("environment");
            }
            if (log == null)
            {
                throw new ArgumentNullException("log");
            }
            if (installer == null)
            {
                throw new ArgumentNullException("installer");
            }
            if (assembliesLocator == null)
            {
                throw new ArgumentNullException("assembliesLocator");
            }

            _fileSystem        = fileSystem;
            _environment       = environment;
            _log               = log;
            _installer         = installer;
            _assembliesLocator = assembliesLocator;
        }