public FileManagerController()//IHostingEnvironment hostingEnvironment
 {
     this.operation = new AzureFileProvider();
     this.operation.RegisterAzure(accountName, key, baseBlobPath);
     this.operation.SetBlobContainer(startPath, originalPath);
     this.operation.SetDownloadPath(@"C:\");
 }
Ejemplo n.º 2
0
 public FileManagerController(IHostingEnvironment hostingEnvironment)
 {
     this.operation = new AzureFileProvider();
     this.operation.RegisterAzure("ej2syncfusionfilemanager", "cgKqBPKOGYjPPKn/0eHa9XrYvhPThD43yDAk6QXiEW34kN5cTYY+rD0m/+aHTB1c7TbFSiq3MPDEn8mKMX7jjA==", "files");
     this.operation.setBlobContainer("https://ej2syncfusionfilemanager.blob.core.windows.net/files/", "https://ej2syncfusionfilemanager.blob.core.windows.net/files/Files");
     this.operation.setDownloadPath(@"D:\");
 }
Ejemplo n.º 3
0
 public AzureProviderController(IHostingEnvironment hostingEnvironment)
 {
     this.operation = new AzureFileProvider();
     this.operation.RegisterAzure("<--accountName-->", "<--accountKey-->", "<--blobName-->");
     this.operation.SetBlobContainer("<--blobPath-->", "<--filePath-->");
     //----------
     //For example
     //this.operation.RegisterAzure("azure_service_account", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "files");
     //this.operation.setBlobContainer("https://azure_service_account.blob.core.windows.net/files/", "https://azure_service_account.blob.core.windows.net/files/Files");
     //---------
 }
 public AzureProviderController(IHostingEnvironment hostingEnvironment)
 {
     this.operation = new AzureFileProvider();
     // Create a storage account in azure, modify storage name, key,
     this.operation.RegisterAzure("samplestorageaccount10", "GgYu0RJ5TyAhn6vRklxjFnbDDBkR+mbGdrnf7I/oOE+/gy86Qz470xqOZOoczZsTbWFhhYAU7dmxLxFMGXpwQQ==", "files");
     this.operation.SetBlobContainer("https://samplestorageaccount10.blob.core.windows.net/files/", "https://samplestorageaccount10.blob.core.windows.net/files/Files");
     //----------
     //For example
     //this.operation.RegisterAzure("azure_service_account", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "files");
     //this.operation.setBlobContainer("https://azure_service_account.blob.core.windows.net/files/", "https://azure_service_account.blob.core.windows.net/files/Files");
     //---------
 }
Ejemplo n.º 5
0
        public AzureProviderController(IWebHostEnvironment HostingEnvironment, IConfiguration Configuration)
        {
            _env           = HostingEnvironment;
            _configuration = Configuration;
            var AccountName = _configuration.GetSection("CloudBlobStorageSettings").GetValue <string>("AccountName");
            var AccountKey  = _configuration.GetSection("CloudBlobStorageSettings").GetValue <string>("AccountKey");

            _blobPath       = _configuration.GetSection("CloudBlobStorageSettings").GetValue <string>("BlobPath");
            _filePath       = _configuration.GetSection("CloudBlobStorageSettings").GetValue <string>("FilePath");
            _containerName  = _configuration.GetSection("CloudBlobStorageSettings").GetValue <string>("ContainerName");
            this._operation = new AzureFileProvider();
            this._operation.RegisterAzure(AccountName, AccountKey, _containerName);
            this._operation.setBlobContainer(_blobPath, _filePath);
        }
 public AzureProviderController()
 {
     operation = new AzureFileProvider();
     operation.RegisterAzure("<--accountName-->", "<--accountKey-->", "<--blobName-->");
     operation.setBlobContainer("<--blobPath-->", "<--filePath-->");
 }
 public AzureProviderController()
 {
     operation = new AzureFileProvider();
     operation.RegisterAzure("ej2syncfusionfilemanager", "cgKqBPKOGYjPPKn/0eHa9XrYvhPThD43yDAk6QXiEW34kN5cTYY+rD0m/+aHTB1c7TbFSiq3MPDEn8mKMX7jjA==", "files");
     operation.setBlobContainer("https://ej2syncfusionfilemanager.blob.core.windows.net/files/", "https://ej2syncfusionfilemanager.blob.core.windows.net/files/Files");
 }