예제 #1
0
        /// <summary>
        /// Start listening for in coming message
        /// </summary>
        /// <param name="queueName">Queue name </param>
        /// <param name="queueRootPath">Queue path</param>
        /// <param name="handler">Message receieved handler</param>
        public void Start(string queueName, string queueRootPath, EventHandler <MessageEventArgs <T> > handler)
        {
            IMessageAdapter <T> adpt = msgAdapterFactory.GetAdapter(queueName, queueRootPath);

            adpt.Start(handler);
        }