public ConsoleBackupRunner(IBackupEngine engine, ILogger logger, IList<IGetNotifiedWhenABackupIsCompleted> notifySources, IBackupEngineSettings settings)
 {
     _engine = engine;
     _logger = logger;
     _notifySources = notifySources;
     _settings = settings;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameUpdateManager"/> class.
 /// </summary>
 /// <param name="backupEngine">The backup engine.</param>
 /// <param name="logger">The logger.</param>
 /// <exception cref="System.ArgumentNullException">
 /// backupEngine
 /// or
 /// logger
 /// </exception>
 public GameUpdateManager(IBackupEngine backupEngine, ILogEngine logger)
 {
     if (backupEngine == null) throw new ArgumentNullException("backupEngine");
     if (logger == null) throw new ArgumentNullException("logger");
     _backupEngine = backupEngine;
     _logger = logger;
 }
Ejemplo n.º 3
0
 public ConsoleBackupRunner(IBackupEngine engine, ILogger logger, IList <IGetNotifiedWhenABackupIsCompleted> notifySources, IBackupEngineSettings settings)
 {
     _engine        = engine;
     _logger        = logger;
     _notifySources = notifySources;
     _settings      = settings;
 }
Ejemplo n.º 4
0
 public Backup()
 {
     BackupEngine = new BackupEngine();
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ServerManager"/> class.
        /// </summary>
        /// <param name="playerManager">The player manager.</param>
        /// <param name="gameUpdateManager">The game update manager.</param>
        /// <param name="backupEngine">The backup engine.</param>
        /// <param name="logger">The logger.</param>
        /// <exception cref="System.ArgumentNullException">
        /// playerManager
        /// or
        /// gameUpdateManager
        /// or
        /// backupEngine
        /// or
        /// logger
        /// </exception>
        public ServerManager(IPlayerManager playerManager, IGameUpdateManager gameUpdateManager, IBackupEngine backupEngine, ILogEngine logger)
        {
            if (playerManager == null) throw new ArgumentNullException("playerManager");
            if (gameUpdateManager == null) throw new ArgumentNullException("gameUpdateManager");
            if (backupEngine == null) throw new ArgumentNullException("backupEngine");
            if (logger == null) throw new ArgumentNullException("logger");
            _playerManager = playerManager;
            _gameUpdateManager = gameUpdateManager;
            _backupEngine = backupEngine;
            _logger = logger;

            _javaPath = MinecraftSettings.Default.JavaPath;
            _version = MinecraftSettings.Default.MinecraftVersion;
            _memory = MinecraftSettings.Default.Memory;
            _permGen = MinecraftSettings.Default.PermGen;

            _serverPath = Path.GetFullPath("./Server/");
            Directory.CreateDirectory(_serverPath);
        }
Ejemplo n.º 6
0
 public BackupManager(IBackupEngine backupEngine, IConfigResourceAccess configResourceAccess)
 {
     _backupEngine = backupEngine;
     _configResourceAccess = configResourceAccess;
 }