Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Start test...");

            string mode = "remote";

            //QClient.RuntimeTest();
            //QClient.ReadFile(@"D:\Nistec\Services\MQueue\Queues\Queue\Demo\c11e3ce4b53\c11e3ce4b53b0a8bf.mcq");

            switch (mode)
            {
            case "remote":
                QClient.Test();
                QListener.Test();
                break;

            case "db":
                break;

            case "file":
                break;

            case "ipc":
                break;

            case "tcp":
                break;

            case "report":
                break;
            }

            Console.WriteLine("Finished...");
            Console.ReadLine();
        }
Exemplo n.º 2
0
        public static void Test()
        {
            QClient client = new QClient();

            client.AddQueue();
            client.AddItems(10);
            client.QueueCount();
            client.DequeueItems();
        }