MyCQ.MyCQFactory Class Reference

Provides methods for getting MyCQClient instance and QueueSchema instance. More...

List of all members.

Static Public Member Functions

static MyCQClient getMyCQClient ()
 Get a new MyCQClient instance.
static QueueSchema getQueueSchema ()
 Get a new QueueSchema instance.

Detailed Description

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();
        }
    }
}

Member Function Documentation

static MyCQClient MyCQ.MyCQFactory.getMyCQClient (  )  [static]

Get a new MyCQClient instance.

Returns:
MyCQClient instance.
static QueueSchema MyCQ.MyCQFactory.getQueueSchema (  )  [static]

Get a new QueueSchema instance.

Returns:
QueueSchema instance.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Properties
MyCQ .NET User's Document. Copyright@MyCQ Inc., All Rights Reserved.