Пример #1
0
        private static void KeystoneDeleteUser(IamClient iamClient)
        {
            var keystoneDeleteUserRequest = new KeystoneDeleteUserRequest()
            {
                UserId = ""
            };

            try
            {
                var keystoneDeleteUserResponse = iamClient.KeystoneDeleteUser(keystoneDeleteUserRequest);
                Console.WriteLine(keystoneDeleteUserResponse.HttpStatusCode);
            }
            catch (RequestTimeoutException requestTimeoutException)
            {
                Console.WriteLine(requestTimeoutException.ErrorMessage);
            }
            catch (ServiceResponseException clientRequestException)
            {
                Console.WriteLine(clientRequestException.HttpStatusCode);
                Console.WriteLine(clientRequestException.ErrorCode);
                Console.WriteLine(clientRequestException.ErrorMsg);
            }
            catch (ConnectionException connectionException)
            {
                Console.WriteLine(connectionException.ErrorMessage);
            }
        }