Exemple #1
0
 protected PostgresqlLauncher(ISettingsProvider servicesProvider, IPostgresqlLauncherServiceProvider pgCmdProvider)
 {
     SettingsProvider    = servicesProvider;
     EngineConstants     = SettingsProvider.EngineConstants;
     CommandLinesFactory = pgCmdProvider.GetCommandLinesFactory();
     InstallExistChecker = pgCmdProvider.GetInstallationStatusChecker();
 }
Exemple #2
0
 public IPostgresqlLauncher GetLauncher(ISettingsProvider settingProvider, IPostgresqlLauncherServiceProvider pgCmdProvider, RuntimeOs osPlatform, RuntimeArchitecture architecture)
 {
     if (osPlatform == RuntimeOs.Unknown)
     {
         throw new PlatformNotSupportedException("Your OS is not supported");
     }
     return(new UniversalPostgresqlLauncher(settingProvider, pgCmdProvider));
 }
 public PostgreSqlDataBaseEngineLauncher(ISettingsProvider settingsProvider,
                                         IEngineInstalationResolver installResolver, IRuntimePlatformResolver runtimePlatformResolver = null,
                                         IPostgreLauncherResolver launcerResolver = null, ITempDirectoryProvider tempDirectoryProvider = null)
 {
     _settingsProvider        = settingsProvider;
     _installResolver         = installResolver;
     LauncherServiceProvider  = new PostgresqlLauncherServiceProvider(_settingsProvider);
     _runtimePlatformResolver = runtimePlatformResolver ?? new RuntimePlatformResolver();
     _launcerResolver         = launcerResolver ?? new UniversalResolver();
     _tempDirectoryProvider   = tempDirectoryProvider ?? new TempDirectoryProvider();
 }
Exemple #4
0
 public UniversalPostgresqlLauncher(ISettingsProvider settingsProvider, IPostgresqlLauncherServiceProvider pgCmdProvider) : base(settingsProvider, pgCmdProvider)
 {
 }