Ejemplo n.º 1
0
 public static int Main(string[] args)
 {
     using (var stream = System.Console.OpenStandardOutput())
     {
         var result = DeploymentWorker.Execute(args, stream);
         var retval = (result) ? 0 : 1;
         return(retval);
     }
 }
 public AutoDeployBackgroundService(
     [NotNull] IDeploymentTargetReadService deploymentTargetReadService,
     [NotNull] MonitoringService monitoringService,
     [NotNull] DeploymentWorker deploymentWorker,
     [NotNull] AutoDeployConfiguration autoDeployConfiguration,
     [NotNull] ILogger logger,
     [NotNull] PackageService packageService)
 {
     _deploymentTargetReadService = deploymentTargetReadService ??
                                    throw new ArgumentNullException(nameof(deploymentTargetReadService));
     _monitoringService       = monitoringService ?? throw new ArgumentNullException(nameof(monitoringService));
     _deploymentWorker        = deploymentWorker ?? throw new ArgumentNullException(nameof(deploymentWorker));
     _autoDeployConfiguration = autoDeployConfiguration ??
                                throw new ArgumentNullException(nameof(autoDeployConfiguration));
     _logger         = logger ?? throw new ArgumentNullException(nameof(logger));
     _packageService = packageService ?? throw new ArgumentNullException(nameof(packageService));
 }
Ejemplo n.º 3
0
 public DeployController(ILogger logger, DeploymentWorker deploymentService)
 {
     _logger            = logger;
     _deploymentService = deploymentService;
 }