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(); }
void Start() { // Create Storage Service client with name and access key _client = new StorageServiceClient(ACC_NAME, KEY); // Create Service from client _service = _client.GetBlobService(); // Create Audio Sources voiceInputAudio = gameObject.GetComponent <AudioSource>(); startAudio = gameObject.AddComponent <AudioSource>(); stopAudio = gameObject.AddComponent <AudioSource>(); startAudio.playOnAwake = false; startAudio.clip = StartListeningSound; stopAudio.playOnAwake = false; stopAudio.clip = StopListeningSound; // Get Microphone manager microphoneManager = GetComponent <MicrophoneManager>(); }
/// <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)); }
private void UploadAssetBundleFile(string path) { if (!File.Exists(path)) { Debug.LogError("No asset bundle file found:" + path); return; } string filename = Path.GetFileName(path); byte[] bytes = File.ReadAllBytes(path); if (client == null) { client = new StorageServiceClient(storageAccount, accessKey); service = client.GetBlobService(); Debug.Log("Created Storage Service"); } Debug.Log("Reading file bytes: " + path + "\nUpload asset bundle file: " + filename + " size:" + bytes.Length); StartCoroutine(service.PutAssetBundle(CompletedUploadingAssetBundle, bytes, container, filename)); }
void Start() { client = new StorageServiceClient(storageAccount, accessKey); blobService = client.GetBlobService(); }