Esempio n. 1
0
 public BlogImageServer(RequestDelegate next,
                        ILoggerFactory loggerFactory, BlogContentExtractor blogContentExtractor)
 {
     _next   = next;
     _logger = loggerFactory.CreateLogger <BlogImageServer>();
     _blogContentExtractor = blogContentExtractor;
 }
Esempio n. 2
0
 public BlogRepository(
     IConfiguration configuration,
     ILoggerFactory loggerFactory,
     IHttpClientFactory httpClientFactory,
     PostInfoUrlManager postInfoUrlManager,
     BlogContentExtractor blogContentExtractor)
 {
     _loggerFactory          = loggerFactory;
     _logger                 = loggerFactory.CreateLogger <BlogRepository>();
     _blogContentBaseAddress = configuration["BlogContentBaseAddress"];
     _blogListHttpClient     = httpClientFactory.CreateClient("BlogList");
     _postInfoUrlManager     = postInfoUrlManager;
     _blogContentExtractor   = blogContentExtractor;
 }