From 7aa36d88f17ac689a271a1e7f26a13fc60131c4b Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Mon, 1 Mar 2010 14:54:30 +0000 Subject: [PATCH] Update for new delegate signature git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3262 52acb1d6-8a22-11de-b505-999d5b087335 --- .../TestClient/Commands/Inventory/UploadScriptCommand.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Programs/examples/TestClient/Commands/Inventory/UploadScriptCommand.cs b/Programs/examples/TestClient/Commands/Inventory/UploadScriptCommand.cs index bbd0e2e4..7664f255 100644 --- a/Programs/examples/TestClient/Commands/Inventory/UploadScriptCommand.cs +++ b/Programs/examples/TestClient/Commands/Inventory/UploadScriptCommand.cs @@ -1,5 +1,6 @@ using System; using System.IO; +using System.Collections.Generic; namespace OpenMetaverse.TestClient { @@ -52,10 +53,13 @@ namespace OpenMetaverse.TestClient { if (success) // upload the asset - Client.Inventory.RequestUpdateScriptAgentInventory(EncodeScript(body), item.UUID, true, new InventoryManager.ScriptUpdatedCallback(delegate(bool success1, string status, UUID itemid, UUID assetid) + Client.Inventory.RequestUpdateScriptAgentInventory(EncodeScript(body), item.UUID, true, new InventoryManager.ScriptUpdatedCallback(delegate(bool uploadSuccess, string uploadStatus, bool compileSuccess, List compileMessages, UUID itemid, UUID assetid) { - if (success1) + if (uploadSuccess) ret += String.Format(" Script successfully uploaded, ItemID {0} AssetID {1}", itemid, assetid); + if (compileSuccess) + ret += " compilation successful"; + })); }); }