Provides methods for getting MyCQClient instance and QueueSchema instance. More...
Static Public Member Functions | |
static MyCQClient | getMyCQClient () |
Get a new MyCQClient instance. | |
static QueueSchema | getQueueSchema () |
Get a new QueueSchema instance. |
Provides methods for getting MyCQClient instance and QueueSchema instance.
using System; using MyCQ; namespace MyCQClientNETExample { class ExamMyCQClient { public void sample() { //get a client instance MyCQClient client = MyCQFactory.getMyCQClient(); try { //connect to server client.connect("localhost", 3030, "root", "1234"); } catch (MyCQException ex) { Console.WriteLine("code:" + ex.getCode() + ", message:" + ex.getMessage()); } //close client.close(); } } }
static MyCQClient MyCQ.MyCQFactory.getMyCQClient | ( | ) | [static] |
Get a new MyCQClient instance.
static QueueSchema MyCQ.MyCQFactory.getQueueSchema | ( | ) | [static] |
Get a new QueueSchema instance.