コード例 #1
0
        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 !");
        }
コード例 #2
0
        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 !");
        }
コード例 #3
0
ファイル: AzureFS.cs プロジェクト: junerod/PdfTextReader
 public IAzureBlobFolder GetFolder(string name)
 {
     return(_inputFS.GetFolder(name));
 }