示例#1
0
 public BlogsController(IBlogHttpClient blogsHttpClient)
 {
     _blogsHttpClient = blogsHttpClient;
 }
示例#2
0
 public UsersController(IBlogHttpClient blogHttpClient, IOptions <User> adminSettings)
 {
     _blogClient    = blogHttpClient;
     _adminSettings = adminSettings.Value;
     _blogClient.Authenticate(adminSettings.Value);
 }