Exemplo n.º 1
0
 public PackageInstaller(EnvironmentSettings environmentSettings,
                         IApplicationClientFactory applicationClientFactory, IApplication application,
                         IPackageArchiver packageArchiver, ISqlScriptExecutor scriptExecutor,
                         IServiceUrlBuilder serviceUrlBuilder, IFileSystem fileSystem, ILogger logger)
 {
     environmentSettings.CheckArgumentNull(nameof(environmentSettings));
     applicationClientFactory.CheckArgumentNull(nameof(applicationClientFactory));
     application.CheckArgumentNull(nameof(application));
     packageArchiver.CheckArgumentNull(nameof(packageArchiver));
     scriptExecutor.CheckArgumentNull(nameof(scriptExecutor));
     serviceUrlBuilder.CheckArgumentNull(nameof(serviceUrlBuilder));
     fileSystem.CheckArgumentNull(nameof(fileSystem));
     _environmentSettings      = environmentSettings;
     _applicationClientFactory = applicationClientFactory;
     _application             = application;
     _packageArchiver         = packageArchiver;
     _scriptExecutor          = scriptExecutor;
     _serviceUrlBuilder       = serviceUrlBuilder;
     _fileSystem              = fileSystem;
     _logger                  = logger;
     _applicationClient       = _applicationClientFactory.CreateClient(_environmentSettings);
     _applicationClientForLog = _applicationClientFactory.CreateClient(_environmentSettings);
     _developerModeEnabled    = _environmentSettings.DeveloperModeEnabled.HasValue &&
                                _environmentSettings.DeveloperModeEnabled.Value;
 }
Exemplo n.º 2
0
 // Constructor for tests.
 public GgpDebugQueryTarget(IFileSystem fileSystem, SdkConfig.Factory sdkConfigFactory,
                            IGameletClientFactory gameletClientFactory,
                            IApplicationClientFactory applicationClientFactory,
                            CancelableTask.Factory cancelableTaskFactory,
                            IDialogUtil dialogUtil, IRemoteDeploy remoteDeploy,
                            DebugSessionMetrics metrics,
                            ICredentialManager credentialManager,
                            ITestAccountClientFactory testAccountClientFactory,
                            IGameletSelectorFactory gameletSelectorFactory,
                            ICloudRunner cloudRunner, Versions.SdkVersion sdkVersion,
                            ChromeClientLaunchCommandFormatter launchCommandFormatter,
                            DebugEngine.DebugEngine.Params.Factory paramsFactory,
                            IYetiVSIService yetiVsiService, IGameLauncher gameLauncher)
 {
     _fileSystem               = fileSystem;
     _sdkConfigFactory         = sdkConfigFactory;
     _gameletClientFactory     = gameletClientFactory;
     _applicationClientFactory = applicationClientFactory;
     _cancelableTaskFactory    = cancelableTaskFactory;
     _dialogUtil               = dialogUtil;
     _remoteDeploy             = remoteDeploy;
     _metrics                  = metrics;
     _credentialManager        = credentialManager;
     _testAccountClientFactory = testAccountClientFactory;
     _cloudRunner              = cloudRunner;
     _yetiVsiService           = yetiVsiService;
     _gameletSelectorFactory   = gameletSelectorFactory;
     _sdkVersion               = sdkVersion;
     _launchCommandFormatter   = launchCommandFormatter;
     _paramsFactory            = paramsFactory;
     _gameLauncher             = gameLauncher;
 }
Exemplo n.º 3
0
 public RegAppCommand(ISettingsRepository settingsRepository, IApplicationClientFactory applicationClientFactory)
 {
     _settingsRepository       = settingsRepository;
     _applicationClientFactory = applicationClientFactory;
 }