/// <summary> /// Constructor of the QueryReplayer class. /// </summary> internal QueryReplayer(IOfflineManager offlineManager, IKuzzle kuzzle) { this.queue = new List <TimedQuery>(); this.offlineManager = offlineManager; this.kuzzle = kuzzle; this.cancellationTokenSource = new CancellationTokenSource(); this.ReplayQuery = ReplayOneQuery; }
internal OfflineManager(AbstractProtocol networkProtocol, IKuzzle kuzzle) { this.NetworkProtocol = networkProtocol; networkProtocol.StateChanged += this.StateChangeListener; this.kuzzle = kuzzle; InitComponents(); this.kuzzle.GetEventHandler().UserLoggedIn += this.OnUserLoggedIn; this.kuzzle.GetEventHandler().UserLoggedOut += this.OnUserLoggedOut; }
public TokenVerifier(IOfflineManager offlineManager, IKuzzle kuzzle) { this.offlineManager = offlineManager; this.kuzzle = kuzzle; this.authController = kuzzle.GetAuth(); }
public SubscriptionRecoverer(IOfflineManager offlineManager, IKuzzle kuzzle) { this.realtimeController = kuzzle.GetRealtime(); kuzzle.GetEventHandler().Subscription += OnSubscriptionEvent; }