示例#1
0
        public async Task <TaskModels <TaskFileResultModels> > Export(string input, CommonAzureModels commonAzure)
        {
            ExportAzureModels exportAzure = new ExportAzureModels();

            StaticMethods.PopulateBaseProperties(exportAzure, commonAzure);
            exportAzure.input = input;

            return(await exportService.Export(exportAzure));
        }
示例#2
0
        public async Task <TaskModels <TaskFileResultModels> > Import(CommonAzureModels commonAzure, string filename)
        {
            ImportAzureModels importAzure = new ImportAzureModels();

            StaticMethods.PopulateBaseProperties(importAzure, commonAzure);
            importAzure.filename = filename;

            return(await importService.Import(importAzure));
        }
示例#3
0
        public CommonAzureModels GetCommonAzureModels(string blobName = "")
        {
            CommonAzureModels commonAzure = new CommonAzureModels();

            if (string.IsNullOrEmpty(blobName))
            {
                blobName = Guid.NewGuid().ToString();
            }

            commonAzure.blob = blobName;

            commonAzure.storage_account = azureContainerClient.AccountName;
            commonAzure.sas_token       = GetAzureContainerSASToken();
            commonAzure.container       = azureContainerClient.Name;

            return(commonAzure);
        }