Example #1
0
        //===================================
        // private internal methods

        private void InitControlQueue()
        {
            // set up the local control queues
            List <string> routes = new List <string>();

            routes.Add("*.farmRequest.proxy");
            // the queueingmodel class binds an exchange and queue for straightforward applications where only one channel is needed
            controlQueue = new QueueingModel(
                settings.exchName, "topic", ControlBaseName, routes,
                settings.host, settings.user, settings.pass, settings.port);
            controlQueue.SetListenerCallback(HandlePosts);
            if (auditLog != null)
            {
                auditLog.WriteEntry("Queue Initialized");
            }
        }
Example #2
0
 static void TestQModelReadAsync()
 {
     asyncModel = new QueueingModel(
         exchName, exchType, "QModel", "QModel", hostName, uid, pwd, port);
     asyncModel.SetListenerCallback(PullModel);
 }