public CloneRepositoryCommand( IGitRemoteSearchService searchService, IConnectedServiceManager serviceManager, IUserSettingsManager settingsManager, IDefaultShellService defaultShellService, ILocalRepositoryIndexer localRepositoryIndexer) { _searchService = searchService; _serviceManager = serviceManager; _settingsManager = settingsManager; _shellService = defaultShellService; _localRepositoryIndexer = localRepositoryIndexer; }
public WebShellFactory( IHubContext <ConsoleHub> hubContext, IDefaultShellService defaultShellService, IBoostApplicationContext applicationContext) { _hubContext = hubContext; _defaultShellService = defaultShellService; _applicationContext = applicationContext; _messageHandler = (msg) => { _hubContext.Clients.All.SendAsync("consoleData", msg); }; }
public ConsoleShellFactory( IDefaultShellService defaultShellService, IBoostApplicationContext boostApplicationContext) { _defaultShellService = defaultShellService; _boostApplicationContext = boostApplicationContext; _messageHandler = (msg) => { if (msg.Type == "info" || msg.Type == "error") { Console.WriteLine(msg.Message); } }; }
public ConsoleWebShellFactory( IDefaultShellService defaultShellService, IBoostApplicationContext applicationContext, IConsole console) { _defaultShellService = defaultShellService; _applicationContext = applicationContext; _messageHandler = (msg) => { if (msg?.Message is { }) { console.WriteLine(msg.Message); } };