Ejemplo n.º 1
0
        private static async Task RunOptionAsync(Options options)
        {
            try
            {
                ConsoleExtensions.DisplayInfoMessage("Sending request...");

                Result <LobManager> managerResult   = LobManager.Create(options);
                Result <None>       provisionResult = await managerResult.Value.ProvisionResourcesAsync();

                var result = Result.Combine(managerResult, provisionResult);

                if (result.HasError())
                {
                    throw new InvalidOperationException(managerResult.Error);
                }

                ConsoleExtensions.DisplaySuccessMessage("Done!");
            }
            catch (Exception ex)
            {
                var t = ex.Message;
            }
        }