public void Run(string inputStorageAccount, string queueStorageAccount, string queueName) { _inputStorageAccount = inputStorageAccount; _queueStorageAccount = queueStorageAccount; _queueName = queueName; var input = new AzureBlobFileSystem(); input.AddStorageAccount("input", inputStorageAccount); input.SetWorkingFolder("wasb://input"); var container = input.GetFolder("pdf"); var itens = container.EnumItems(); var itens_added = ProcessItensAsync(itens, "pdf").GetAwaiter().GetResult(); Console.WriteLine($"{itens_added} message(s) added to the queue !"); }
static void Main(string[] args) { Console.WriteLine("Console Queue"); _config = new Config(args); var input = new AzureBlobFileSystem(); input.AddStorageAccount("input", _config.Get("INPUT_STORAGE_ACCOUNT")); input.SetWorkingFolder("wasb://input"); var container = input.GetFolder("pdf"); var itens = container.EnumItems(); var itens_added = ProcessItensAsync(itens, "pdf").GetAwaiter().GetResult(); Console.WriteLine($"{itens_added} message(s) added to the queue !"); }
public IAzureBlobFolder GetFolder(string name) { return(_inputFS.GetFolder(name)); }