예제 #1
0
 public MetadataReferenceLoader(
     IAssemblyLoader assemblyLoader,
     IPackageAssemblyResolver packageAssemblyResolver,
     IPackagesIntegrityValidator packagesIntegrityValidator,
     IPackageManager packageManager)
 {
     _assemblyLoader             = assemblyLoader ?? throw new ArgumentNullException(nameof(assemblyLoader));
     _packageAssemblyResolver    = packageAssemblyResolver ?? throw new ArgumentNullException(nameof(packageAssemblyResolver));
     _packagesIntegrityValidator = packagesIntegrityValidator ?? throw new ArgumentNullException(nameof(packagesIntegrityValidator));
     _packageManager             = packageManager ?? throw new ArgumentNullException(nameof(packageManager));
 }
 public MetadataGenerator(
     ICakeSourceGeneratorService cakeSourceGenerator,
     ICakeSyntaxRewriterService cakeSyntaxRewriterService,
     IPackageManager packageManager,
     IDependencyResolver dependencyResolver,
     IPackageAssemblyResolver packageAssemblyResolver,
     ICompiler compiler,
     IMetadataReferenceLoader metadataReferenceLoader,
     ICompilationProvider compilationProvider,
     IFileSystem fileSystem)
 {
     _cakeSourceGenerator       = cakeSourceGenerator ?? throw new ArgumentNullException(nameof(cakeSourceGenerator));
     _cakeSyntaxRewriterService = cakeSyntaxRewriterService ?? throw new ArgumentNullException(nameof(cakeSyntaxRewriterService));
     _packageManager            = packageManager ?? throw new ArgumentNullException(nameof(packageManager));
     _dependencyResolver        = dependencyResolver ?? throw new ArgumentNullException(nameof(dependencyResolver));
     _packageAssemblyResolver   = packageAssemblyResolver ?? throw new ArgumentNullException(nameof(packageAssemblyResolver));
     _compiler = compiler ?? throw new ArgumentNullException(nameof(compiler));
     _metadataReferenceLoader = metadataReferenceLoader ?? throw new ArgumentNullException(nameof(metadataReferenceLoader));
     _compilationProvider     = compilationProvider ?? throw new ArgumentNullException(nameof(compilationProvider));
     _fileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem));
 }