private static async Task DoThings(IConfigurationSection appKeys, ILogger logger) { MicroBlogConfiguration.SetConfiguration(() => new MicroBlogConfiguration.MicroBlogOptions(appKeys["StorageAcc"], appKeys["NewArticleStore"], appKeys["NewArticleDetails"], appKeys["TagProcessing"], appKeys["TagStore"], appKeys["catQueue"], appKeys["catStore"])); var allOpts = MicroBlogConfiguration.GetOptions(); var cloudAcct = new CloudStorageContext(allOpts.StorageAccount); //await Stage1(cloudAcct, allOpts, logger); await Stage3(cloudAcct, allOpts, logger); }
public static void ConfigureBlogOptions(string rootFolder) { Dictionary <string, string> options = GetSettings(rootFolder); MicroBlogConfiguration.SetConfiguration(() => new MicroBlogConfiguration.MicroBlogOptions( options["Values:AzureWebJobsStorage"], options["Values:ArticleBlob"], options["Values:ArticleDetails"], options["Values:TagQueue"], options["Values:TagsTable"], options["Values:CategoryQueue"], options["Values:CategoryTable"] )); }