Exemple #1
0
 public VersionChecker(
     INugetService nugetService,
     AppSettings appSettings,
     IBoostApplicationContext boostApplicationContext)
 {
     _nugetService            = nugetService;
     _appSettings             = appSettings;
     _boostApplicationContext = boostApplicationContext;
 }
Exemple #2
0
        public async Task <GitLocalRepository?> GetLocalGitRepository(
            [Service] IGitLocalRepositoryService gitService,
            [Service] IBoostApplicationContext applicationContext,
            string?id,
            CancellationToken cancellationToken)
        {
            var path = applicationContext.WorkingDirectory.FullName;

            if (id is { })
Exemple #3
0
 public CliWrapWebShell(
     string shell,
     Action <ShellMessage> messageHandler,
     IBoostApplicationContext boostApplicationContext)
 {
     _shell                   = shell;
     _messageHandler          = messageHandler;
     _boostApplicationContext = boostApplicationContext;
     _session                 = new();
 }
Exemple #4
0
 public WebShell(
     string shell,
     Action <ShellMessage> messageHandler,
     IBoostApplicationContext boostApplicationContext)
 {
     _messageHandler          = messageHandler;
     _boostApplicationContext = boostApplicationContext;
     CreateStartInfo(shell);
     _session = new();
 }
Exemple #5
0
 public WorkspaceService(
     IWebShellFactory webShellFactory,
     IBoostApplicationContext applicationContext,
     IEnumerable <IFileContentTypeHandler> fileHandlers)
 {
     _webShellFactory     = webShellFactory;
     _applicationContext  = applicationContext;
     _fileHandlers        = fileHandlers.OrderBy(x => x.Order);
     _contentTypeProvider = new FileExtensionContentTypeProvider();
     _contentTypeProvider.Mappings.Add(".dll", "boost/dll");
 }
Exemple #6
0
 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);
                }
            };
Exemple #9
0
 public QuickActionsCommand(IBoostApplicationContext applicationContext)
 {
     _applicationContext = applicationContext;
 }
Exemple #10
0
 public BoostQueries(IBoostApplicationContext boostApplicationContext)
 {
     _boostApplicationContext = boostApplicationContext;
 }
Exemple #11
0
 public SnapshooterService(IBoostApplicationContext boostApplicationContext)
 {
     _boostApplicationContext = boostApplicationContext;
 }
Exemple #12
0
 public NugetService(
     IBoostApplicationContext boostApplicationContext)
 {
     _boostApplicationContext = boostApplicationContext;
 }
 public OpenSolutionCommand(IBoostApplicationContext applicationContext)
 {
     _applicationContext = applicationContext;
 }