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); }
public UrlService( IUrlRepository urlRepository, IApplicationResourceFactory applicationResourceFactory, IMapperFactory mapperFactory) { _urlRepository = urlRepository; _mapperFactory = mapperFactory; _queue = applicationResourceFactory.GetQueue<SavedUrlQueueItem>(ComponentIdentity); }