Ejemplo n.º 1
0
 public SessionFactory(AbstractLogger logger, ICoroutineManager coroutineManager, IStopwatch pollCountdownStopwatch, IEpochTime epochTime, DatabaseCorruptionHandler databaseCorruptionHandler, INotificationQueue notificationQueue, INotificationDispatcher notificationDispatcher, ISessionStatus sessionStatus, IMixWebCallFactoryFactory mixWebCallFactoryFactory, IWebCallEncryptorFactory webCallEncryptorFactory, IMixSessionStarter mixSessionStarter, IKeychain keychain, ISessionRefresherFactory sessionRefresherFactory, IGuestControllerClientFactory guestControllerClientFactory, IRandom random, IEncryptor encryptor, IFileSystem fileSystem, IWwwCallFactory wwwCallFactory, string localStorageDirPath, string clientVersion, IDatabaseDirectoryCreator databaseDirectoryCreator, IDocumentCollectionFactory documentCollectionFactory, IDatabase database)
 {
     this.logger                       = logger;
     this.coroutineManager             = coroutineManager;
     this.pollCountdownStopwatch       = pollCountdownStopwatch;
     this.epochTime                    = epochTime;
     this.databaseCorruptionHandler    = databaseCorruptionHandler;
     this.notificationQueue            = notificationQueue;
     this.notificationDispatcher       = notificationDispatcher;
     this.sessionStatus                = sessionStatus;
     this.mixWebCallFactoryFactory     = mixWebCallFactoryFactory;
     this.webCallEncryptorFactory      = webCallEncryptorFactory;
     this.mixSessionStarter            = mixSessionStarter;
     this.keychain                     = keychain;
     this.sessionRefresherFactory      = sessionRefresherFactory;
     this.guestControllerClientFactory = guestControllerClientFactory;
     this.random                       = random;
     this.encryptor                    = encryptor;
     this.fileSystem                   = fileSystem;
     this.wwwCallFactory               = wwwCallFactory;
     this.localStorageDirPath          = localStorageDirPath;
     this.clientVersion                = clientVersion;
     this.databaseDirectoryCreator     = databaseDirectoryCreator;
     this.documentCollectionFactory    = documentCollectionFactory;
     this.database                     = database;
 }
Ejemplo n.º 2
0
 public GuestControllerClientFactory(IWwwCallFactory wwwCallFactory, string spoofedIpAddress, IDatabase database, string host, string clientId, AbstractLogger logger)
 {
     this.wwwCallFactory   = wwwCallFactory;
     this.spoofedIpAddress = spoofedIpAddress;
     this.database         = database;
     this.host             = host;
     this.clientId         = clientId;
     this.logger           = logger;
 }
Ejemplo n.º 3
0
 public MixWebCallFactoryFactory(AbstractLogger logger, string hostUrl, string mixClientToken, IWwwCallFactory wwwCallFactory, IMixWebCallQueue webCallQueue, IEpochTime epochTime, IDatabase database)
 {
     this.logger         = logger;
     this.hostUrl        = hostUrl;
     this.mixClientToken = mixClientToken;
     this.wwwCallFactory = wwwCallFactory;
     this.webCallQueue   = webCallQueue;
     this.epochTime      = epochTime;
     this.database       = database;
 }
 public GuestControllerClient(IWwwCallFactory wwwCallFactory, string spoofedIpAddress, IDatabase database, string swid, string host, string clientId, AbstractLogger logger)
 {
     this.wwwCallFactory   = wwwCallFactory;
     this.spoofedIpAddress = spoofedIpAddress;
     this.database         = database;
     this.swid             = swid;
     this.host             = host;
     this.clientId         = clientId;
     this.logger           = logger;
     queue    = new List <QueueItem>();
     wwwCalls = new List <IWwwCall>();
 }
Ejemplo n.º 5
0
 public MixWebCallFactory(AbstractLogger logger, string host, IWwwCallFactory wwwCallFactory, IWebCallEncryptor webCallEncryptor, string swid, string guestControllerAccessToken, string mixClientToken, IMixWebCallQueue webCallQueue, ISessionRefresher sessionRefresher, IEpochTime epochTime, IDatabase database)
 {
     this.logger                     = logger;
     this.host                       = host;
     this.wwwCallFactory             = wwwCallFactory;
     this.webCallEncryptor           = webCallEncryptor;
     this.swid                       = swid;
     this.guestControllerAccessToken = guestControllerAccessToken;
     this.mixClientToken             = mixClientToken;
     this.webCallQueue               = webCallQueue;
     this.sessionRefresher           = sessionRefresher;
     this.epochTime                  = epochTime;
     this.database                   = database;
     webCalls = new List <IDisposable>();
 }
Ejemplo n.º 6
0
 public MixWebCall(AbstractLogger logger, Uri uri, string body, HttpMethod method, Dictionary <string, string> headers, IWwwCallFactory wwwCallFactory, IWebCallEncryptor webCallEncryptor, long latencyWwwCallTimeout, long maxWwwCallTimeout, IDatabase database, string swid)
 {
     this.logger                = logger;
     this.uri                   = uri;
     this.body                  = body;
     this.method                = method;
     this.headers               = headers;
     this.wwwCallFactory        = wwwCallFactory;
     this.latencyWwwCallTimeout = latencyWwwCallTimeout;
     this.maxWwwCallTimeout     = maxWwwCallTimeout;
     this.database              = database;
     this.swid                  = swid;
     WebCallEncryptor           = webCallEncryptor;
     RefreshStatus              = WebCallRefreshStatus.NotRefreshing;
     timeoutLogs                = new StringBuilder();
 }
Ejemplo n.º 7
0
 public AssetLoader(AbstractLogger logger, IWwwCallFactory wwwCallFactory)
 {
     this.logger         = logger;
     this.wwwCallFactory = wwwCallFactory;
 }