Пример #1
0
        internal void getDecision(object source, ElapsedEventArgs e)
        {
            // Hipotese: Se timer expirar, perguntar ao coordenador decisao final
            ICoordinator coord = (ICoordinator)Activator.GetObject(typeof(ICoordinator), _coordinatorURL);

            //It is assumed that if the coordinator fails to respond, the transaction is
            //Alternative strategies are available for the participants to obtain a decision
            // cooperatively instead of contacting the coordinato
            coord.haveCommitted(TX.TXID, MY_URL);
            // save decision
        }