コード例 #1
0
 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);
 }
コード例 #2
0
 // Start is called before the first frame update
 private void OnEnable()
 {
     storageAPI = new AzureStorageAPI(OnErrorMsg);
     GetDefaultDirectory();
 }
コード例 #3
0
        public async Task <IActionResult> Files(string path)
        {
            var file = await AzureStorageAPI.FileStreamAsync(path);

            return(new FileStreamResult(file, MimeHelper.GetMimeType(Path.GetExtension(path).Substring(1))));
        }