Ejemplo n.º 1
0
        /// <summary>
        /// Fire Event
        /// </summary>
        private static void FireEvent()
        {
            var eventGovern = new EventGovern();
            var result      = eventGovern.FireEvent(new FireEventParmeter {
                Name = "fireevent", DC = "dc1", Node = "n1", Service = "lisapi", Tag = "lisapi"
            }).GetAwaiter().GetResult();

            Console.WriteLine($"result={result.result}");
            Console.WriteLine($"back content={EntityToString(result.fireEvent)}");
        }
Ejemplo n.º 2
0
 static void FireEvent()
 {
     try
     {
         var eve    = new EventGovern();
         var result = eve.FireEvent(new FireEventParmeter {
             Name = "deploy", DC = "dc1", Node = "", Service = ""
         }).GetAwaiter().GetResult();
         Console.WriteLine(result.result);
         Console.WriteLine(EntityToString(result.fireEvent));
     }
     catch (Exception exc)
     {
         Console.WriteLine($"错误:{exc.Message}");
     }
 }