protected void doStuff() { Console.WriteLine("Dumping a copy of " + client.Self.FirstName + "'s inventory to the console."); Console.WriteLine(); if (AgentInventory != null) { InventoryFolder root = AgentInventory.getRootFolder(); if (root != null) { Console.WriteLine(root.toXML(false)); } } }
protected void doStuff() { // and request an inventory download Console.WriteLine("Downloading Inventory."); client.Inventory.DownloadInventory(); Console.WriteLine("Dumping a copy of " + client.Self.FirstName + "'s inventory to the console."); Console.WriteLine(); InventoryFolder root = client.Inventory.getRootFolder(); if (root != null) { Console.WriteLine(root.toXML(false)); } }