Exemplo n.º 1
0
        public ClusterState(ClusterSettings settings)
        {
            LocalNode       = new NodeInfo(settings);
            RemoteNode      = new NodeInfo();
            DataReplication = new DataReplicacionState();

            _ReplicationServiceTimer           = new Timer(_ReplicationServiceInterval);
            _ReplicationServiceTimer.AutoReset = true;
            _ReplicationServiceTimer.Enabled   = true;
            _ReplicationServiceTimer.Elapsed  += ReplicationServiceTask;

            ReplicationServiceTask(null, null);
        }
Exemplo n.º 2
0
        public ClusterState()
        {
            LocalNode       = new NodeInfo();
            RemoteNode      = new NodeInfo();
            DataReplication = new DataReplicacionState();

            /** AGL. 20170905. Para poder funcionar los contructores por defecto...
             * _ReplicationServiceTimer = new Timer(_ReplicationServiceInterval);
             * _ReplicationServiceTimer.AutoReset = false;
             * _ReplicationServiceTimer.Elapsed += ReplicationServiceTask;
             *
             * ReplicationServiceTask(null, null);
             * */
        }