public BindingWorkflow(IHost host, ConnectionInformation connectionInformation, ProjectInformation project) { if (host == null) { throw new ArgumentNullException(nameof(host)); } if (connectionInformation == null) { throw new ArgumentNullException(nameof(connectionInformation)); } if (project == null) { throw new ArgumentNullException(nameof(project)); } this.host = host; this.connectionInformation = connectionInformation; this.project = project; this.projectSystem = this.host.GetService <IProjectSystemHelper>(); this.projectSystem.AssertLocalServiceIsNotNull(); this.settings = this.host.GetMefService <IIntegrationSettings>(); this.solutionBindingOperation = new SolutionBindingOperation( this.host, this.connectionInformation, this.project.Key); }
public FileWatcher(IIntegrationSettings settings, IProcessFactory processFactory, ILogger <FileWatcher> logger) { _settings = settings; _processFactory = processFactory; _logger = logger; }
internal /*for testing purposes*/ ConnectionController(IHost host, IConnectionInformationProvider connectionProvider, IConnectionWorkflowExecutor workflowExecutor) : base(host) { if (host == null) { throw new ArgumentNullException(nameof(host)); } this.host = host; this.WorkflowExecutor = workflowExecutor ?? this; this.connectionProvider = connectionProvider ?? this; this.settings = this.host.GetMefService<IIntegrationSettings>(); this.ConnectCommand = new RelayCommand(this.OnConnect, this.OnConnectStatus); this.RefreshCommand = new RelayCommand<ConnectionInformation>(this.OnRefresh, this.OnRefreshStatus); this.DontWarnAgainCommand = new RelayCommand(this.OnDontWarnAgain, this.OnDontWarnAgainStatus); }
internal /*for testing purposes*/ ConnectionController(IHost host, IConnectionInformationProvider connectionProvider, IConnectionWorkflowExecutor workflowExecutor) : base(host) { if (host == null) { throw new ArgumentNullException(nameof(host)); } this.host = host; this.WorkflowExecutor = workflowExecutor ?? this; this.connectionProvider = connectionProvider ?? this; this.settings = this.host.GetMefService <IIntegrationSettings>(); this.ConnectCommand = new RelayCommand(this.OnConnect, this.OnConnectStatus); this.RefreshCommand = new RelayCommand <ConnectionInformation>(this.OnRefresh, this.OnRefreshStatus); this.DontWarnAgainCommand = new RelayCommand(this.OnDontWarnAgain, this.OnDontWarnAgainStatus); }
public static IIntegreatServicesBuilder AddSettings(this IIntegreatServicesBuilder builder, IIntegrationSettings settings) { Guard.IsNotNull(builder, nameof(builder)); Guard.IsNotNull(settings, nameof(settings)); builder.Services.AddSingleton <IIntegrationSettings>(settings); return(builder); }
public IntegrationArchiver(IFileStorage fileStorage, IProcessLogger logger, IIntegrationSettings settings) { _fileStorage = fileStorage; _logger = logger; _settings = settings; }