Beispiel #1
0
        /// <summary>
        /// Constructor for initialization 
        /// </summary>
        public RestAPI()
        {
            // Logger.LogWrite(EskimoDBLogLevel.Verbose, "Creating");
            DependencyInjection di = DependencyInjection.GetInstance();

            mockRootServer = (IRootServer)di.CreateObject("root", new object[]{
                this,new WSDualHttpBinding(),"http://localhost:8080/root"});
            mockAuthServer = (IAuthServer)di.CreateObject("auth", new object[]{
                null,new BasicHttpBinding(),"http://149.119.196.45:8080/IComm"});

            m_PutDataSetCalled = false;
            m_PutQueryInfoCalled = false;
            m_QueryResult = new QueryResult(0, null, null);
            m_id = null;
            m_QueryDataset = new QueryDataset(new System.Collections.Generic.List<Type>(), new System.Collections.Generic.List<string>());
            m_lines = 0;

            m_IterateToTheEnd = 0;
            m_CallGetResult = true;
            m_startLine = 0;
            m_RowsPerTime = 5;
            m_IterateIndex = 0;
            m_FinalLines = 0;
            m_Table = new Tables();

        }
Beispiel #2
0
    /// <summary>
    /// Constructor for initialization 
    /// </summary>
    public ClientAPI()
    {
      Logger.LogWrite("Initializing client api");

      m_PutDataSetCalled = false;
      m_PutQueryInfoCalled = false;
      m_QueryResult = new QueryResult(0, null, null);
      m_id = null;
      m_QueryDataset = new QueryDataset(new System.Collections.Generic.List<Type>(), new System.Collections.Generic.List<string>());
      m_lines = 0;

      m_IterateToTheEnd = 0;
      m_CallGetResult = true;
      m_startLine = 0;
      m_RowsPerTime = 5;
      m_IterateIndex = 0;
      m_FinalLines = 0;
      m_Table = new Tables();

    }