private void OnEnable() { PatchPath = Application.dataPath + "/Patches"; AzureStorageManager.storageAccount = CloudStorageAccount.Parse(AzureStorageManager.connectionString); AzureStorageManager.blobClient = AzureStorageManager.storageAccount.CreateCloudBlobClient(); windowSize = new Vector2(300, 400); guiskin = (GUISkin)Resources.Load("UISkin"); storageAPI = new AzureStorageAPI(OnErrorMsg); }
// Start is called before the first frame update private void OnEnable() { storageAPI = new AzureStorageAPI(OnErrorMsg); GetDefaultDirectory(); }
public async Task <IActionResult> Files(string path) { var file = await AzureStorageAPI.FileStreamAsync(path); return(new FileStreamResult(file, MimeHelper.GetMimeType(Path.GetExtension(path).Substring(1)))); }