Provides data for AssetUploaded event
Inheritance: System.EventArgs
 void Assets_UploadProgress(object sender, AssetUploadEventArgs e)
 {
     if (e.Upload.Transferred == e.Upload.Size)
     {
         WaitForUploadComplete.Set();
     }
     else
     {
         //Console.WriteLine("Progress: {0}/{1} {2}/{3} {4}", upload.XferID, upload.ID, upload.Transferred, upload.Size, upload.Success);
         Console.Write(".");
     }
 }
Exemple #2
0
 /// <summary>Raises the UploadProgress event</summary>
 /// <param name="e">A UploadProgressEventArgs object containing the
 /// data returned from the simulator</param>
 protected virtual void OnUploadProgress(AssetUploadEventArgs e)
 {
     EventHandler<AssetUploadEventArgs> handler = m_UploadProgressEvent;
     if (handler != null)
         handler(this, e);
 }
Exemple #3
0
 /// <summary>Raises the AssetUploaded event</summary>
 /// <param name="e">A AssetUploadedEventArgs object containing the
 /// data returned from the simulator</param>
 protected virtual void OnAssetUploaded(AssetUploadEventArgs e)
 {
     EventHandler<AssetUploadEventArgs> handler = m_AssetUploadedEvent;
     if (handler != null)
         handler(this, e);
 }
Exemple #4
0
 void Assets_AssetUploaded(object sender, AssetUploadEventArgs e)
 {
     if (e.Upload.ID == TransactionID)
     {
         if (!e.Upload.Success)
         {
             TempUploadHandler(false, new InventoryTexture(UUID.Zero));
         }
         else
         {
             client.Inventory.RequestCreateItem(client.Inventory.FindFolderForType(AssetType.Texture),
                 TextureName, TextureDescription, AssetType.Texture, TransactionID,
                 InventoryType.Texture, PermissionMask.All, TempUploadHandler);
         }
     }
 }
 private void Assets_AssetUploaded(object sender, AssetUploadEventArgs e)
 {
     if (UUID2OBJECT != null)
     {
         var u = e.Upload;
         if (u.Success)
         {
             var itc = GetNew(u.AssetID) as ItemToCreate;
             if (itc != null)
             {
                 itc.WriteComplete();
             }
         }
     }
 }
Exemple #6
0
 public virtual void Assets_OnUploadProgress(object sender, AssetUploadEventArgs e) { OnEvent("On-Upload-Progress", paramNamesOnUploadProgress, paramTypesOnUploadProgress, e.Upload); }
Exemple #7
0
 public virtual void Assets_OnAssetUploaded(object sender, AssetUploadEventArgs e) { OnEvent("On-Asset-Uploaded", paramNamesOnAssetUploaded, paramTypesOnAssetUploaded, e.Upload); }