示例#1
0
 public ContentController(IArticleManager articleManager,
                          IHttpClientFactory httpClient,
                          ILatestNewsManager latestNewsManager,
                          IConfiguration configuration)
 {
     _configuration     = configuration;
     _httpClient        = httpClient;
     _articleManager    = articleManager;
     _latestNewsManager = latestNewsManager;
 }
示例#2
0
 public ContentController(IArticleManager articleManager, ISiteInfoManager siteInfoManager,
                          UserManager <ApplicationIdentityUser> userManager,
                          ILatestNewsManager latestNewsManager,
                          ICategoryManager categoryManager)
 {
     _categoryManager   = categoryManager;
     _articleManager    = articleManager;
     _userManager       = userManager;
     _siteInfoManager   = siteInfoManager;
     _latestNewsManager = latestNewsManager;
 }