public async Task RemoveAsync(string id) { AppContext.SetSwitch( "System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true); using var channel = GrpcChannel.ForAddress(_configuration["UserGrpc"]); var client = new UserService.UserServiceClient(channel); var result = await client.RemoveAsync(new UserInformationRequest { UserId = id }); if (!result.Success) { throw new BadRequestException($"Error occured while updating user"); } }