示例#1
0
 void Start()
 {
     client      = StorageServiceClient.Create(storageAccount, accessKey);
     blobService = client.GetBlobService();
     GetBlobList();
     currentFile = "";
 }
示例#2
0
 private void Start()
 {
     if (string.IsNullOrEmpty(storageAccount) || string.IsNullOrEmpty(accessKey))
     {
         return;
     }
     client      = StorageServiceClient.Create(storageAccount, accessKey);
     blobService = client.GetBlobService();
 }
示例#3
0
    // Use this for initialization
    void Start()
    {
        if (string.IsNullOrEmpty(storageAccount) || string.IsNullOrEmpty(accessKey))
        {
            Log.Text(label, "Storage account and access key are required", "Enter storage account and access key in Unity Editor", Log.Level.Error);
        }

        client      = StorageServiceClient.Create(storageAccount, accessKey);
        blobService = client.GetBlobService();
    }
    // Use this for initialization
    void Start()
    {
        if (string.IsNullOrEmpty(storageAccount) || string.IsNullOrEmpty(accessKey))
        {
            Log.Text(label, "Storage account and access key are required", "Enter storage account and access key in Unity Editor", Log.Level.Error);
        }

        client      = StorageServiceClient.Create(storageAccount, accessKey);
        blobService = client.GetBlobService();

        items = new List <Blob>();
        // set TSTableView delegate
        tableView.dataSource = this;

        ListBlobs();
    }
示例#5
0
    /// <summary>
    /// Handler to get selected row item
    /// </summary>
    public void OnSelectedRow(Button button)
    {
        dynamicLoad.blobName = button.name;
        Debug.Log("Load blob: " + dynamicLoad.blobName);


        Debug.Log("This blob is: " + dynamicLoad.blobName);

        if (string.IsNullOrEmpty(storageAccount) || string.IsNullOrEmpty(accessKey))
        {
            Debug.Log("Storage account and access key are required - Enter storage account and access key in Unity Editor");
        }

        client      = StorageServiceClient.Create(storageAccount, accessKey);
        blobService = client.GetBlobService();

        string resourcePath = container + "/" + dynamicLoad.blobName;

        StartCoroutine(blobService.GetTextBlob(GetTextBlob, resourcePath));
    }