Beispiel #1
0
        public GeolocationGetter(AbstractLogger logger, ICoroutineManager coroutineManager, string mixApiHostUrl, string mixClientToken, string localStorageDirPath, IKeychain keychain)
        {
            SystemStopwatchFactory   stopwatchFactory         = new SystemStopwatchFactory();
            SystemWwwFactory         wwwFactory               = new SystemWwwFactory();
            WwwCallFactory           wwwCallFactory           = new WwwCallFactory(logger, coroutineManager, stopwatchFactory, wwwFactory);
            JsonWebCallEncryptor     webCallEncryptor         = new JsonWebCallEncryptor();
            MixWebCallQueue          webCallQueue             = new MixWebCallQueue();
            NoOpSessionRefresher     sessionRefresher         = new NoOpSessionRefresher();
            FileSystem               fileSystem               = new FileSystem();
            DatabaseDirectoryCreator databaseDirectoryCreator = new DatabaseDirectoryCreator(fileSystem, localStorageDirPath);
            string sdkDatabasesDirectory = databaseDirectoryCreator.GetSdkDatabasesDirectory();
            DocumentCollectionFactory documentCollectionFactory = new DocumentCollectionFactory();
            DatabaseCorruptionHandler databaseCorruptionHandler = new DatabaseCorruptionHandler(logger, fileSystem, sdkDatabasesDirectory);
            SystemRandom      random            = new SystemRandom();
            SystemEpochTime   epochTime         = new SystemEpochTime();
            Database          database          = new Database(keychain.LocalStorageKey, random, epochTime, databaseDirectoryCreator, documentCollectionFactory, databaseCorruptionHandler);
            MixWebCallFactory mixWebCallFactory = new MixWebCallFactory(logger, mixApiHostUrl, wwwCallFactory, webCallEncryptor, string.Empty, string.Empty, mixClientToken, webCallQueue, sessionRefresher, epochTime, database);

            geolocationGetter = new Disney.Mix.SDK.Internal.GeolocationGetter(logger, mixWebCallFactory);
        }
Beispiel #2
0
        public RegistrationConfigurationGetter(IKeychain keychain, AbstractLogger logger, string localStorageDirPath, string guestControllerHostUrl, string guestControllerSpoofedIpAddress, string oneIdClientId, ICoroutineManager coroutineManager, string mixApiHostUrl, string mixClientToken)
        {
            SystemStopwatchFactory    stopwatchFactory          = new SystemStopwatchFactory();
            SystemWwwFactory          wwwFactory                = new SystemWwwFactory();
            WwwCallFactory            wwwCallFactory            = new WwwCallFactory(logger, coroutineManager, stopwatchFactory, wwwFactory);
            JsonWebCallEncryptor      webCallEncryptor          = new JsonWebCallEncryptor();
            FileSystem                fileSystem                = new FileSystem();
            DatabaseDirectoryCreator  directoryCreator          = new DatabaseDirectoryCreator(fileSystem, localStorageDirPath);
            DocumentCollectionFactory documentCollectionFactory = new DocumentCollectionFactory();
            SystemRandom              random = new SystemRandom();
            DatabaseCorruptionHandler databaseCorruptionHandler = new DatabaseCorruptionHandler(logger, fileSystem, localStorageDirPath);
            SystemEpochTime           epochTime                       = new SystemEpochTime();
            Database                     database                     = new Database(keychain.LocalStorageKey, random, epochTime, directoryCreator, documentCollectionFactory, databaseCorruptionHandler);
            MixWebCallQueue              webCallQueue                 = new MixWebCallQueue();
            NoOpSessionRefresher         sessionRefresher             = new NoOpSessionRefresher();
            MixWebCallFactory            webCallFactory               = new MixWebCallFactory(logger, mixApiHostUrl, wwwCallFactory, webCallEncryptor, string.Empty, string.Empty, mixClientToken, webCallQueue, sessionRefresher, epochTime, database);
            AgeBandBuilder               ageBandBuilder               = new AgeBandBuilder(logger, webCallFactory);
            GuestControllerClientFactory guestControllerClientFactory = new GuestControllerClientFactory(wwwCallFactory, guestControllerSpoofedIpAddress, database, guestControllerHostUrl, oneIdClientId, logger);

            registrationConfigurationGetter = new Disney.Mix.SDK.Internal.RegistrationConfigurationGetter(logger, guestControllerClientFactory, ageBandBuilder);
        }