protected override void Start() { base.Start(); DontDestroyOnLoad(gameObject); Storage = StorageContainer.Storage; ApplyState <AppInitState>(); }
public TaskManager(ITasksStorage tasksStorage, IServerStorage serversStorage, IWebApiClient apiClient) { this.tasksStorage = tasksStorage; this.serversStorage = serversStorage; this.apiClient = apiClient; this.RunAddOrUpdateProductTasks(); this.RunDeleteProductTasks(); }
public void Run(IAppServer appServer, IGameServer gameServer, IServerStorage storage) { AppServer = appServer; GameServer = gameServer; Storage = storage; Model = new ServerModel(); ApplyState <ServerIdleState>(); }
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); }
public void Run(IAppServer appServer, IGameServer gameServer, IServerStorage storage) { AppServer = appServer; GameServer = gameServer; Storage = storage; Model = new ServerModel(); DMarketServerApi.ApplyHttpProtocol(_apiSettings); ApplyState <ServerIdleState>(); }
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; }
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(); }
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; }