Esempio n. 1
0
 protected override void Start()
 {
     base.Start();
     DontDestroyOnLoad(gameObject);
     Storage = StorageContainer.Storage;
     ApplyState <AppInitState>();
 }
Esempio n. 2
0
        public TaskManager(ITasksStorage tasksStorage, IServerStorage serversStorage, IWebApiClient apiClient)
        {
            this.tasksStorage = tasksStorage;
            this.serversStorage = serversStorage;
            this.apiClient = apiClient;

            this.RunAddOrUpdateProductTasks();
            this.RunDeleteProductTasks();
        }
Esempio n. 3
0
 public void Run(IAppServer appServer, IGameServer gameServer,
                 IServerStorage storage)
 {
     AppServer  = appServer;
     GameServer = gameServer;
     Storage    = storage;
     Model      = new ServerModel();
     ApplyState <ServerIdleState>();
 }
Esempio n. 4
0
 public StatServer(LiteDatabase database)
 {
     _listener       = new HttpListener();
     _database       = database;
     _matchStorage   = new MatchStorage(_database);
     _reportsManager = CreateReportsManager(_database);
     _serverStorage  = new ServerStorage(_database);
     InitializeStatisticManager(_database);
 }
        public SettingsViewModel(IServerStorage storage, ITasksStorage tasksStorage)
        {
            this.storage = storage;
            this.tasksStorage = tasksStorage;

            this.NewServerViewModel = new NewServerViewModel();

            this.Add = new RelayCommand(this.HandleAdd, this.CanAdd);
            this.Delete = new RelayCommand<ServerInformation>(this.HandleDelete);
        }
Esempio n. 6
0
 public void Run(IAppServer appServer, IGameServer gameServer,
                 IServerStorage storage)
 {
     AppServer  = appServer;
     GameServer = gameServer;
     Storage    = storage;
     Model      = new ServerModel();
     DMarketServerApi.ApplyHttpProtocol(_apiSettings);
     ApplyState <ServerIdleState>();
 }
Esempio n. 7
0
 public Router(StatisticsManager serverManager, StatisticsManager playerManager, IReportsManager reportsManger,
               IServerStorage serverStorage, IMatchStorage matchStorage, IDictionary <string, IRoute> routes)
 {
     ServerManager = serverManager;
     PlayerManager = playerManager;
     ReportsManger = reportsManger;
     ServerStorage = serverStorage;
     MatchStorage  = matchStorage;
     _routes       = routes;
 }
Esempio n. 8
0
        public ServerManager(IServerStorage storage, IWebApiClient apiClient, ITaskManager taskManager)
        {
            this.storage = storage;
            this.storage.Servers.CollectionChanged += (s, e) => { this.Initialize(); };
            this.apiClient = apiClient;
            this.taskManager = taskManager;
            this.Cache = new Cache();

            this.Initialize();
        }
Esempio n. 9
0
 public MainWindowViewModel(IMailService mailService,
                            IServerStorage serverStorage, ISenderStorage senderStorage, IRecipientStorage recipientStorage, IMessageStorage messageStorage)
 {
     _MailService      = mailService;
     _serverStorage    = serverStorage;
     _senderStorage    = senderStorage;
     _recipientStorage = recipientStorage;
     _messageStorage   = messageStorage;
     _timer            = new Timer(100);
     _timer.Elapsed   += OnTimerElapsed;
     _timer.AutoReset  = true;
     _timer.Enabled    = true;
 }