Пример #1
0
    public RunOrchestrator(
        IAppBundleInformationParser appBundleInformationParser,
        IAppInstaller appInstaller,
        IAppUninstaller appUninstaller,
        IAppRunnerFactory appRunnerFactory,
        IDeviceFinder deviceFinder,
        IiOSExitCodeDetector iOSExitCodeDetector,
        IMacCatalystExitCodeDetector macCatalystExitCodeDetector,
        ILogger consoleLogger,
        ILogs logs,
        IFileBackedLog mainLog,
        IErrorKnowledgeBase errorKnowledgeBase,
        IDiagnosticsData diagnosticsData,
        IHelpers helpers)
        : base(appBundleInformationParser, appInstaller, appUninstaller, deviceFinder, consoleLogger, logs, mainLog, errorKnowledgeBase, diagnosticsData, helpers)
    {
        _iOSExitCodeDetector         = iOSExitCodeDetector ?? throw new ArgumentNullException(nameof(iOSExitCodeDetector));
        _macCatalystExitCodeDetector = macCatalystExitCodeDetector ?? throw new ArgumentNullException(nameof(macCatalystExitCodeDetector));
        _logger             = consoleLogger ?? throw new ArgumentNullException(nameof(consoleLogger));
        _logs               = logs ?? throw new ArgumentNullException(nameof(logs));
        _errorKnowledgeBase = errorKnowledgeBase ?? throw new ArgumentNullException(nameof(errorKnowledgeBase));

        // Only add the extra callback if we do know that the feature was indeed enabled
        Action <string>?logCallback = IsLldbEnabled() ? (l) => NotifyUserLldbCommand(_logger, l) : null;

        _appRunner = appRunnerFactory.Create(mainLog, logs, logCallback);
    }
Пример #2
0
 public JustRunOrchestrator(
     IAppBundleInformationParser appBundleInformationParser,
     IAppInstaller appInstaller,
     IAppUninstaller appUninstaller,
     IAppRunnerFactory appRunnerFactory,
     IDeviceFinder deviceFinder,
     IiOSExitCodeDetector iOSExitCodeDetector,
     IMacCatalystExitCodeDetector macCatalystExitCodeDetector,
     ILogger consoleLogger,
     ILogs logs,
     IFileBackedLog mainLog,
     IErrorKnowledgeBase errorKnowledgeBase,
     IDiagnosticsData diagnosticsData,
     IHelpers helpers)
     : base(appBundleInformationParser, appInstaller, appUninstaller, appRunnerFactory, deviceFinder, iOSExitCodeDetector, macCatalystExitCodeDetector, consoleLogger, logs, mainLog, errorKnowledgeBase, diagnosticsData, helpers)
 {
 }