/// <summary> /// Initializes a new instance of the <see cref="BlogController" /> class. /// </summary> /// <param name="blogRepository">The blog post repository.</param> /// <param name="commentRepository">The Disqus comment repository</param> /// <param name="urlShortener">The URL shortener</param> /// <param name="socialManager">The social network manager used to get sharing URLs</param> public BlogController(IBlogRepository blogRepository, IDisqusCommentRepository commentRepository, IUrlShortener urlShortener, ISocialManager socialManager) { _blogRepository = blogRepository; _commentRepository = commentRepository; _urlShortener = urlShortener; _socialManager = socialManager; }
/// <summary> /// Initializes a new instance of the <see cref="BlogController" /> class. /// </summary> /// <param name="blogRepository">The blog post repository.</param> /// <param name="commentRepository">The Disqus comment repository</param> /// <param name="urlShortener">The URL shortener</param> /// <param name="socialManager">The social network manager used to get sharing URLs</param> /// <param name="siteConfig">Site configuration</param> public BlogController(IBlogRepository blogRepository, IDisqusCommentRepository commentRepository, IUrlShortener urlShortener, ISocialManager socialManager, ISiteConfiguration siteConfig) { _blogRepository = blogRepository; _commentRepository = commentRepository; _urlShortener = urlShortener; _socialManager = socialManager; _siteConfig = siteConfig; _profiler = MiniProfiler.Current; }
/// <summary> /// Initializes a new instance of the <see cref="DisqusComments" /> class. /// </summary> /// <param name="commentRepository">The comment database repository.</param> /// <param name="siteConfiguration">The site configuration.</param> public DisqusComments(IDisqusCommentRepository commentRepository, ISiteConfiguration siteConfiguration, HttpClient client) { _commentRepository = commentRepository; _siteConfiguration = siteConfiguration; _client = client; }
/// <summary> /// Initializes a new instance of the <see cref="DisqusComments" /> class. /// </summary> /// <param name="commentRepository">The comment database repository.</param> /// <param name="siteConfiguration">The site configuration.</param> public DisqusComments(IDisqusCommentRepository commentRepository, ISiteConfiguration siteConfiguration) { _commentRepository = commentRepository; _siteConfiguration = siteConfiguration; }