public TumblrPostsViewComponent(IMicroblogRepository microblogRepository) { _microblogRepository = microblogRepository; }
/// <summary> /// Initializes a new instance of the <see cref="SiteController" /> class. /// </summary> /// <param name="blogRepository">The blog post repository.</param> /// <param name="microblogRepository">The microblog (Tumblr) repository.</param> public SiteController(IBlogRepository blogRepository, IMicroblogRepository microblogRepository) { _blogRepository = blogRepository; _microblogRepository = microblogRepository; }
/// <summary> /// Initializes a new instance of the <see cref="SiteController" /> class. /// </summary> /// <param name="blogRepository">The blog post repository.</param> /// <param name="projectRepository">The project repository</param> /// <param name="microblogRepository">The microblog (Tumblr) repository.</param> public SiteController(IBlogRepository blogRepository, IProjectRepository projectRepository, IMicroblogRepository microblogRepository) { _blogRepository = blogRepository; _projectRepository = projectRepository; _microblogRepository = microblogRepository; }
/// <summary> /// 构造器 /// </summary> /// <param name="microblogRepository">微博数据仓储</param> public MicroblogService(IMicroblogRepository microblogRepository) { this.microblogRepository = microblogRepository; }