Пример #1
0
 public JobOrderWatcher(FirebaseConnection firebaseConnection,
                        //AgentStateUpdater agentStateUpdater,
                        FirebaseCredentials creds)
 {
     _conn = firebaseConnection;
     //_stateUpdatr = agentStateUpdater;
 }
Пример #2
0
        private static NewVersionWatcher CreateWatcher(string deploymentKey, string instrumentationKey)
        {
            var json  = AESThenHMAC.SimpleDecryptWithPassword(deploymentKey, instrumentationKey);
            var creds = JsonConvert.DeserializeObject <FirebaseCredentials>(json);
            var conn  = new FirebaseConnection(creds);
            var agtUp = new AgentStateUpdater(conn, creds);

            return(new NewVersionWatcher(conn, agtUp));
        }
Пример #3
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposedValue)
     {
         return;
     }
     if (disposing)
     {
         _conn?.Dispose();
         _conn = null;
     }
     disposedValue = true;
 }
Пример #4
0
 public AgentStateUpdater(FirebaseConnection firebaseConnection,
                          FirebaseCredentials firebaseCredentials)
 {
     _conn  = firebaseConnection;
     _creds = firebaseCredentials;
 }
Пример #5
0
 public NewVersionWatcher(FirebaseCredentials credentials)
 {
     _conn     = new FirebaseConnection(credentials);
     _agtState = new AgentStateUpdater(_conn, credentials);
 }
Пример #6
0
 public NewVersionWatcher(FirebaseConnection firebaseConnection,
                          AgentStateUpdater agentStateUpdater)
 {
     _conn     = firebaseConnection;
     _agtState = agentStateUpdater;
 }