/// <summary> /// Get an uploaded asset. If the data is successfully retrieved, /// the transaction will be removed. /// </summary> /// <param name="transactionID"></param> /// <returns>The asset if the upload has completed, null if it has not.</returns> private AssetBase GetTransactionAsset(UUID transactionID) { lock (XferUploaders) { if (XferUploaders.ContainsKey(transactionID)) { AssetXferUploader uploader = XferUploaders[transactionID]; AssetBase asset = uploader.GetAssetData(); RemoveXferUploader(transactionID); return(asset); } } return(null); }
/// <summary> /// Get an uploaded asset. If the data is successfully retrieved, the transaction will be removed. /// </summary> /// <param name="transactionID"></param> /// <returns>The asset if the upload has completed, null if it has not.</returns> public AssetBase GetTransactionAsset(UUID transactionID) { if (XferUploaders.ContainsKey(transactionID)) { AssetXferUploader uploader = XferUploaders[transactionID]; AssetBase asset = uploader.GetAssetData(); lock (XferUploaders) { XferUploaders.Remove(transactionID); } return(asset); } return(null); }