Exemplo n.º 1
0
        /// <summary>
        /// Deregister Service注销服务
        /// </summary>
        private static void UnRegisterService()
        {
            var serviceGovern = new AgentGovern();
            var result        = serviceGovern.DeregisterServices("newservice001").GetAwaiter().GetResult();

            Console.WriteLine(result.backJson);
            Console.WriteLine(result.result);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Deregister Service
        /// </summary>
        private static void DeregisterService()
        {
            var agentGovern = new AgentGovern();
            var result      = agentGovern.DeregisterServices("test0001").GetAwaiter().GetResult();

            Console.WriteLine($"result={result.result}");
            Console.WriteLine($"back content={result.backJson}");
        }
Exemplo n.º 3
0
 private void btnServiceDelete_Click(object sender, EventArgs e)
 {
     try
     {
         var agentGovern = new AgentGovern();
         var result      = agentGovern.DeregisterServices(gridService.SelectedRows[0].Cells["id"].Value.ToString());
     }
     catch (Exception exc)
     {
         MessageBox.Show(exc.Message);
     }
 }