Example #1
0
 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;
 }
Example #2
0
 public static void SetConfiguration(Func <MicroBlogOptions> opts)
 {
     if (opts != null)
     {
         _opts = opts();
     }
 }
Example #3
0
 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));
 }
Example #4
0
 public TagService(CloudStorageContext cscCtx, MicroBlogOptions opts, ILogger logger, string tableName, string queueName) : base(cscCtx, opts, logger, tableName, queueName)
 {
 }
Example #5
0
 public BlogArticleService(CloudStorageContext ctx, MicroBlogOptions opts, ILogger logger)
 {
     this.ctx    = ctx;
     this.opts   = opts;
     this.logger = logger;
 }