public UserTagRepository(IApplicationResourceFactory applicationResourceFactory,
     INoSqlConcurrencyManager concurrencyManager)
 {
     _concurrencyManager = concurrencyManager;
     string dateOrderedTagItemsTableName = applicationResourceFactory.Setting(ComponentIdentities.Tag, "dateordered-tag-items-tablename");
     string uniqueTagItemsTableName = applicationResourceFactory.Setting(ComponentIdentities.Tag, "unique-tag-items-tablename");
     _userTagsTable = applicationResourceFactory.GetNoSqlRepository<UserTag>(ComponentIdentities.Tag);
     _dateOrderedUserTagItemsTable = applicationResourceFactory.GetNoSqlRepository<DateOrderedUserTagItem>(dateOrderedTagItemsTableName, ComponentIdentities.Tag);
     _uniqueUserTagItemsTable = applicationResourceFactory.GetNoSqlRepository<UniqueUserTagItem>(uniqueTagItemsTableName, ComponentIdentities.Tag);
 }
 public PostedUrlProcessor(IApplicationResourceFactory applicationResourceFactory,
     ILoggerFactory loggerFactory,
     IAsynchronousBackoffPolicy backoffPolicy,
     IUrlService urlService,
     IUserTagService userTagService,
     IUrlStatisticsService urlStatisticsService)
 {
     string poisonQueueName = applicationResourceFactory.Setting(ComponentIdentities.UrlStore, "poison-queuename");
     _backoffPolicy = backoffPolicy;
     _urlService = urlService;
     _userTagService = userTagService;
     _urlStatisticsService = urlStatisticsService;
     _queue = applicationResourceFactory.GetQueue<SavedUrlQueueItem>(ComponentIdentities.UrlStore);
     _poisonQueue = applicationResourceFactory.GetQueue<SavedUrlQueueItem>(poisonQueueName, ComponentIdentities.UrlStore);
     _logger = loggerFactory.CreateLongLivedLogger(ComponentIdentity);
     _savedUrlTable = applicationResourceFactory.GetNoSqlRepository<SavedUrl>(ComponentIdentities.UrlStore);
 }