internal BaseCategoryService(CloudStorageContext cscCtx, MicroBlogOptions opts, ILogger logger, string tableName, string queueName) { this.logger = logger; this._tableStore = new LazyAsync <SimpleTableHelper>(async() => await cscCtx.CreateTableHelper(tableName, logger)); _QueueStore = new LazyAsync <SimpleQueueHelper>(async() => await cscCtx.CreateQueueHelper(queueName, logger)); this.cscCtx = cscCtx; }
public static void SetConfiguration(Func <MicroBlogOptions> opts) { if (opts != null) { _opts = opts(); } }
internal ArticleService(CloudStorageContext cscCtx, MicroBlogOptions opts, ILogger logger) { this.cscCtx = cscCtx; this.opts = opts; this.logger = logger; articleBlobStorage = new LazyAsync <SimpleBlobHelper>(async() => await cscCtx.CreateBlobHelper(opts[StorageList.ArticleBlob], logger)); articleDetailsStorage = new LazyAsync <SimpleTableHelper>(async() => await cscCtx.CreateTableHelper(opts[StorageList.ArticleDetails], logger)); }
public TagService(CloudStorageContext cscCtx, MicroBlogOptions opts, ILogger logger, string tableName, string queueName) : base(cscCtx, opts, logger, tableName, queueName) { }
public BlogArticleService(CloudStorageContext ctx, MicroBlogOptions opts, ILogger logger) { this.ctx = ctx; this.opts = opts; this.logger = logger; }