public DeploymentManager(ISiteBuilderFactory builderFactory, IEnvironment environment, ITraceFactory traceFactory, IAnalytics analytics, IDeploymentSettingsManager settings, IDeploymentStatusManager status, IDictionary <string, IOperationLock> namedLocks, ILogger globalLogger, IWebHooksManager hooksManager) : this(builderFactory, environment, traceFactory, analytics, settings, status, namedLocks["deployment"], globalLogger, hooksManager) { }
public TriggeredJobsManager( string basePath, ITraceFactory traceFactory, IEnvironment environment, IDeploymentSettingsManager settings, IAnalytics analytics, IWebHooksManager hooksManager, IHttpContextAccessor httpContextAccessor, IEnumerable <string> excludedJobsNames = null) : base(traceFactory, environment, settings, analytics, httpContextAccessor, Constants.TriggeredPath, basePath, excludedJobsNames) { _hooksManager = hooksManager; }
public DeploymentManager(ISiteBuilderFactory builderFactory, IEnvironment environment, ITraceFactory traceFactory, IAnalytics analytics, IDeploymentSettingsManager settings, IDeploymentStatusManager status, IOperationLock deploymentLock, ILogger globalLogger, IWebHooksManager hooksManager) { _builderFactory = builderFactory; _environment = environment; _traceFactory = traceFactory; _analytics = analytics; _deploymentLock = deploymentLock; _globalLogger = globalLogger ?? NullLogger.Instance; _settings = settings; _status = status; _hooksManager = hooksManager; }
private static DeploymentManager CreateDeploymentManager( ISiteBuilderFactory builderFactory = null, IEnvironment environment = null, IFileSystem fileSystem = null, ITraceFactory traceFactory = null, IDeploymentSettingsManager settings = null, IDeploymentStatusManager status = null, IOperationLock deploymentLock = null, ILogger globalLogger = null, IWebHooksManager hooksManager = null) { builderFactory = builderFactory ?? Mock.Of <ISiteBuilderFactory>(); environment = environment ?? Mock.Of <IEnvironment>(); fileSystem = fileSystem ?? Mock.Of <IFileSystem>(); traceFactory = traceFactory ?? Mock.Of <ITraceFactory>(); settings = settings ?? Mock.Of <IDeploymentSettingsManager>(); status = status ?? Mock.Of <IDeploymentStatusManager>(); deploymentLock = deploymentLock ?? Mock.Of <IOperationLock>(); globalLogger = globalLogger ?? Mock.Of <ILogger>(); return(new DeploymentManager(builderFactory, environment, fileSystem, traceFactory, settings, status, deploymentLock, globalLogger, hooksManager)); }
private static DeploymentManager CreateDeploymentManager( ISiteBuilderFactory builderFactory = null, IEnvironment environment = null, IFileSystem fileSystem = null, ITraceFactory traceFactory = null, IAnalytics analytics = null, IDeploymentSettingsManager settings = null, IDeploymentStatusManager status = null, IOperationLock deploymentLock = null, ILogger globalLogger = null, IWebHooksManager hooksManager = null) { builderFactory = builderFactory ?? Mock.Of <ISiteBuilderFactory>(); environment = environment ?? Mock.Of <IEnvironment>(); FileSystemHelpers.Instance = fileSystem ?? Mock.Of <IFileSystem>(); traceFactory = traceFactory ?? Mock.Of <ITraceFactory>(); analytics = analytics ?? Mock.Of <IAnalytics>(); settings = settings ?? Mock.Of <IDeploymentSettingsManager>(); status = status ?? Mock.Of <IDeploymentStatusManager>(); deploymentLock = deploymentLock ?? Mock.Of <IOperationLock>(); globalLogger = globalLogger ?? Mock.Of <ILogger>(); return(new DeploymentManager(builderFactory, environment, traceFactory, analytics, settings, status, deploymentLock, globalLogger, hooksManager, Mock.Of <IAutoSwapHandler>(), Mock.Of <IFunctionManager>())); }
public TriggeredJobsManager(ITraceFactory traceFactory, IEnvironment environment, IDeploymentSettingsManager settings, IAnalytics analytics, IWebHooksManager hooksManager) : base(traceFactory, environment, settings, analytics, Constants.TriggeredPath) { _hooksManager = hooksManager; }
private static DeploymentManager CreateDeploymentManager( ISiteBuilderFactory builderFactory = null, IEnvironment environment = null, IFileSystem fileSystem = null, ITraceFactory traceFactory = null, IAnalytics analytics = null, IDeploymentSettingsManager settings = null, IDeploymentStatusManager status = null, IOperationLock deploymentLock = null, ILogger globalLogger = null, IWebHooksManager hooksManager = null) { builderFactory = builderFactory ?? Mock.Of<ISiteBuilderFactory>(); environment = environment ?? Mock.Of<IEnvironment>(); FileSystemHelpers.Instance = fileSystem ?? Mock.Of<IFileSystem>(); traceFactory = traceFactory ?? Mock.Of<ITraceFactory>(); analytics = analytics ?? Mock.Of<IAnalytics>(); settings = settings ?? Mock.Of<IDeploymentSettingsManager>(); status = status ?? Mock.Of<IDeploymentStatusManager>(); deploymentLock = deploymentLock ?? Mock.Of<IOperationLock>(); globalLogger = globalLogger ?? Mock.Of<ILogger>(); return new DeploymentManager(builderFactory, environment, traceFactory, analytics, settings, status, deploymentLock, globalLogger, hooksManager); }
public AggregateTriggeredJobsManager(ITraceFactory traceFactory, IEnvironment environment, IDeploymentSettingsManager settings, IAnalytics analytics, IWebHooksManager hooksManager, IHttpContextAccessor httpContextAccessor) : base(new TriggeredJobsManager(environment.JobsBinariesPath, traceFactory, environment, settings, analytics, hooksManager, httpContextAccessor), excludedList => new TriggeredJobsManager(environment.SecondaryJobsBinariesPath, traceFactory, environment, settings, analytics, hooksManager, httpContextAccessor, excludedList), settings, environment, traceFactory, Constants.TriggeredPath) { }
public WebHooksController(ITracer tracer, IWebHooksManager hooksManager) { _tracer = tracer; _hooksManager = hooksManager; }
public WebHooksController(ITracer tracer, WebHooksManager hooksManager) { _tracer = tracer; _hooksManager = hooksManager; }