コード例 #1
0
ファイル: Program.cs プロジェクト: Kencdk/Kenc.ACMELib
        private static async Task <Order> NewOrderAsync(ACMEClient acmeClient, IEnumerable <OrderIdentifier> domains)
        {
            try
            {
                Order result = await acmeClient.OrderAsync(domains);

                return(result);
            }
            catch (ACMEException ex)
            {
                Console.WriteLine(ex.Descriptor);
                Console.WriteLine(ex.Message);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.GetType());
                Console.WriteLine(ex.Message);
            }

            return(null);
        }
コード例 #2
0
        private static async Task <Order> NewOrderAsync(ACMEClient acmeClient, IEnumerable <OrderIdentifier> domains)
        {
            Order result = await acmeClient.OrderAsync(domains);

            return(result);
        }