Exemple #1
0
        public GlobalManager(ApiManager apiManager, IDatabaseManager databaseManager, ImageDownloader imageManager, InMemoryManager inMemoryManager, ServerQueriesManager serverQueriesManager)
            : this()
        {
            if (apiManager == null)
            {
                throw new ArgumentNullException(nameof(apiManager));
            }
            if (databaseManager == null)
            {
                throw new ArgumentNullException(nameof(databaseManager));
            }
            if (imageManager == null)
            {
                throw new ArgumentNullException(nameof(imageManager));
            }
            if (inMemoryManager == null)
            {
                throw new ArgumentNullException(nameof(inMemoryManager));
            }
            if (serverQueriesManager == null)
            {
                throw new ArgumentNullException(nameof(serverQueriesManager));
            }

            ApiManagerInstance           = apiManager;
            DatabaseManagerInstance      = databaseManager;
            ImageDownloaderInstance      = imageManager;
            InMemoryManagerInstance      = inMemoryManager;
            ServerQueriesManagerInstance = serverQueriesManager;
        }
Exemple #2
0
 public UpdateCardBaseDefinitionsArgument
     (GlobalManager globalManager, IDatabaseManager databaseManager, InMemoryManager inMemoryManager,
     ImageDownloader imageDownloader, ServerQueriesManager serverQueriesManager)
 {
     GlobalManager        = globalManager;
     DatabaseManager      = databaseManager;
     InMemoryManager      = inMemoryManager;
     ImageDownloader      = imageDownloader;
     ServerQueriesManager = serverQueriesManager;
 }