Exemplo n.º 1
0
        //This event handler function retrieves all schemas from the Array Wizard database
        //by calling RequestAllSchemaNames()
        private void IDC_LOAD_SCHEMAS_BUT_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                //Create a new AllSchemaNamesRequest Object and create a new message GUID
                EAWSService.AllSchemaNamesRequest rAllSchemaNamesRequest = new AllSchemaNamesRequest();
                rAllSchemaNamesRequest.itemID = Guid.NewGuid();

                //Store Job GUID for Callback
                m_JobsRunning[rAllSchemaNamesRequest.itemID] = rAllSchemaNamesRequest;

                //Call RequestAllSchemaNames passing rAllSchemaNamesRequest as a parameter
                m_EAWSClient.QueryRequest(rAllSchemaNamesRequest);
            }
            catch (Exception eException)
            {
                MessageBox.Show("Exception is: " + eException.Message);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 获取SCHEMAS
 /// </summary>
 private void LOAD_SCHEMAS_REQ()
 {
     try
     {
         JLog.Instance.AppInfo("开始加载SCHEMAS.....");
         //Create a new AllSchemaNamesRequest Object and create a new message GUID
         AllSchemaNamesRequest rAllSchemaNamesRequest = new AllSchemaNamesRequest();
         rAllSchemaNamesRequest.itemID = Guid.NewGuid();
         JLog.Instance.AppInfo(string.Format("添加EWAW请求--加载SCHEMAS任务序号:{0}", rAllSchemaNamesRequest.itemID));
         //Store Job GUID for Callback
         GlobalInfo.Instance.JobsRunning[rAllSchemaNamesRequest.itemID] = rAllSchemaNamesRequest;
         //GlobalInfo.Instance.JobsRunning.Add(rAllSchemaNamesRequest.itemID, rAllSchemaNamesRequest);
         //Call RequestAllSchemaNames passing rAllSchemaNamesRequest as a parameter
         m_EAWSClient.QueryRequest(rAllSchemaNamesRequest);
     }
     catch (Exception ex)
     {
         JLog.Instance.Error(ex.Message, MethodBase.GetCurrentMethod().Name,
                             MethodBase.GetCurrentMethod().Module.Name);
     }
 }