Пример #1
0
        /// <summary>
        /// Bootstrap ACLs
        /// </summary>
        private static void BootstrapACLs()
        {
            var aclGovern = new ACLGovern();
            var result    = aclGovern.BootstrapACLs().GetAwaiter().GetResult();

            Console.WriteLine($"result={result.result}");
            Console.WriteLine($"back content={EntityToString(result.backBootstrapACLs)}");
        }
Пример #2
0
 static void BootstrapACL()
 {
     try
     {
         var acl    = new ACLGovern();
         var result = acl.BootstrapACLs().GetAwaiter().GetResult();
         Console.WriteLine(result.result);
         Console.WriteLine(result.backBootstrapACLs.ID);
     }
     catch (Exception exc)
     {
         Console.WriteLine($"错误:{exc.Message}");
     }
 }