Example #1
0
 public UpdateCommand(NugetClient nugetClient, DBDepsConfigurationFile configurationFile,
                      DependencyManager dependencyManager)
 {
     this.nugetClient       = nugetClient;
     this.configurationFile = configurationFile;
     this.dependencyManager = dependencyManager;
 }
Example #2
0
 public InstallCommand(DependencyManager dependencyManager,
                       NugetClient nugetClient,
                       DBDepsConfigurationFile configurationFile)
 {
     this.dependencyManager = dependencyManager;
     this.nugetClient       = nugetClient;
     this.configurationFile = configurationFile;
 }
Example #3
0
 private static void ConfigureServices(ServiceCollection services)
 {
     services.AddSingleton <NugetClient>();
     services.AddSingleton <DependencyManager>();
     services.AddSingleton(x =>
     {
         var confFilePath = Path.Combine(Directory.GetCurrentDirectory(), "dbDeps.json");
         var conf         = new DBDepsConfigurationFile(confFilePath);
         return(conf);
     });
 }
Example #4
0
 public ListCommand(NugetClient nugetClient, DBDepsConfigurationFile configurationFile)
 {
     this.nugetClient       = nugetClient;
     this.configurationFile = configurationFile;
 }
Example #5
0
 public DependencyManager(NugetClient nugetClient, DBDepsConfigurationFile configurationFile)
 {
     this.nugetClient       = nugetClient;
     this.configurationFile = configurationFile;
 }