Exemple #1
0
 public void InitilizeVars()
 {
     _connectionAgent = ConnectionAgentWebServer.GetInstance(_reqUri, _authApiKey);
     employees.Add(new Employee {
         Id = 54, Name = "givna", Email = "*****@*****.**", Gender = "Male", Status = "Active", CreatedAt = updatedTime, UpdatedAt = updatedTime
     });
     employees.Add(new Employee {
         Id = 534, Name = "givna", Email = "*****@*****.**", Gender = "Male", Status = "Active", CreatedAt = updatedTime, UpdatedAt = updatedTime
     });
 }
        private bool Login(string connectionUrl, string authApiKey)
        {
            bool isConnected = false;

            ConnectionAgent = ConnectionAgentWebServer.GetInstance(connectionUrl, authApiKey);
#if DEBUG
            isConnected = true;
            isConnected = ConnectionAgent.Connect(5000);
#else
            isConnected = ConnectionAgent.Connect(5000);
#endif

            return(isConnected);
        }