Exemplo n.º 1
0
 public Client(Node info,TcpChannel channel,  IPuppetMaster puppet, ICentralDirectory cd)
 {
     Registers = new string[10];
     Info = info;
     Channel = channel;
     Puppet = puppet;
     CD = cd;
 }
Exemplo n.º 2
0
        public Transaction()
        {
            AccessedKeys = new List<string>();
            NodesLocation = new Dictionary<string, List<Node>>();
            Nodes = new List<Node>();
            Central = (ICentralDirectory)Activator.GetObject(
              typeof(ICentralDirectory),
              "tcp://localhost:9090/CentralDirectory");
            while (true)
            {
                Tctx = Central.BeginTx();
                if (Tctx.Txid != -1)
                    break;

                Thread.Sleep(500);

            }
            Console.WriteLine(Tctx);
        }