Example #1
0
 public string Start(IRuntimeConfig runtimeConfig)
 {
     return(Start(runtimeConfig,
                  FindFreePort(),
                  config.DatabaseName,
                  config.Username, config.Password,
                  config.AdditionalParams));
 }
Example #2
0
        public string Start(IRuntimeConfig runtimeConfig,
                            int port, string dbName,
                            string user, string password,
                            IReadOnlyCollection <string> additionalParams)
        {
            var newConfig = new PostgresConfig(config.Distribution,
                                               port,
                                               dbName, config.DataDir,
                                               user, password, additionalParams);

            process = new PostgresProcess(newConfig, runtimeConfig);
            process.Start();

            return(newConfig.ToConnectionString());
        }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Interpreter"/> class.
 /// </summary>
 /// <param name="platformConfig">The platform configuration.</param>
 /// <param name="runtimeConfig">The runtime configuration.</param>
 public Interpreter(IPlatformConfig platformConfig, IRuntimeConfig runtimeConfig)
 {
     _cpuMode = platformConfig.CpuMode;
     _debug   = runtimeConfig.DebugMode;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Z80Module"/> class.
 /// </summary>
 /// <param name="runtimeConfig">The runtime configuration.</param>
 /// <param name="platformConfig">The platform configuration.</param>
 public Z80Module(IRuntimeConfig runtimeConfig, IPlatformConfig platformConfig)
 {
     _runtimeConfig  = runtimeConfig;
     _platformConfig = platformConfig;
 }
Example #5
0
 public PostgresProcess(IPgConfig config, IRuntimeConfig runtimeConfig)
 {
     this.runtimeConfig = runtimeConfig;
     this.config        = config;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DynaRec"/> class.
 /// </summary>
 /// <param name="platformConfig">The platform configuration.</param>
 /// <param name="runtimeConfig">The runtime configuration.</param>
 public DynaRec(IPlatformConfig platformConfig, IRuntimeConfig runtimeConfig) : this()
 {
     _cpuMode = platformConfig.CpuMode;
     _debug   = runtimeConfig.DebugMode;
 }