void Start() { client = StorageServiceClient.Create(storageAccount, accessKey); blobService = client.GetBlobService(); GetBlobList(); currentFile = ""; }
private void Start() { if (string.IsNullOrEmpty(storageAccount) || string.IsNullOrEmpty(accessKey)) { return; } 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(); }
// 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(); }
/// <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)); }