static void AzureCrawler() { string accountName = Common.InputString("Account Name:", null, true); string container = Common.InputString("Container:", null, false); string endpoint = Common.InputString("Endpoint:", null, false); string accessKey = Common.InputString("Access Key:", null, false); string key = Common.InputString("Key:", null, false); AzureBlobCrawler ac = new AzureBlobCrawler(accountName, container, endpoint, accessKey, key); CrawlResult cr = ac.Get(); if (_OutputType.Equals("console")) { EnumerateCrawlResult(cr); } ParseCrawlResult(cr); }
static void AzureCrawler() { string accountName = Common.InputString("Account Name:", null, true); string container = Common.InputString("Container:", null, false); string endpoint = Common.InputString("Endpoint:", null, false); string accessKey = Common.InputString("Access Key:", null, false); string key = Common.InputString("Key:", null, false); AzureBlobCrawler ac = new AzureBlobCrawler(accountName, container, endpoint, accessKey, key); CrawlResult cr = ac.Get(); Console.WriteLine("Success : " + cr.Success); Console.WriteLine("Start time : " + cr.Time.Start.ToString()); Console.WriteLine("End time : " + cr.Time.End.ToString()); Console.WriteLine("Total ms : " + cr.Time.TotalMs.ToString() + "ms"); Console.WriteLine("Content length : " + cr.ContentLength + " bytes"); Console.WriteLine("Metadata : " + Common.SerializeJson(cr.Metadata, false)); Console.WriteLine("Data :" + Environment.NewLine + Encoding.UTF8.GetString(cr.Data)); }