示例#1
0
 public Controller(MainPage parent)
 {
     this.parent = parent;
     Address address = new Address("amqp://*****:*****@10.1.10.76:5672");
     this.connection = new Connection(address);
     this.session = new Session(connection);
     this.sender = new SenderLink(session, "send-link", "control");
     this.receiver = new ReceiverLink(session, "recv-link", "data");
     this.receiver.Start(50, this.OnMessage);
 }
示例#2
0
            public Controller(MainPage parent, string address)
            {
                this.parent = parent;

                this.connection = new Connection(new Address(address));
                this.session = new Session(connection);
                this.sender = new SenderLink(session, "send-link", "control");
                this.receiver = new ReceiverLink(session, "recv-link", "data");
                this.receiver.Start(50, this.OnMessage);
            }