/// <summary>
 /// Initializes a new instance of the <see cref="BlogController" /> class.
 /// </summary>
 /// <param name="blogRepository">The blog repository.</param>
 /// <param name="tempDataProvider">The temporary data provider</param>
 /// <param name="webCache">Web cache to clear when modifying posts</param>
 /// <param name="comments">Disqus comments service</param>
 public BlogController(IBlogRepository blogRepository, ITempDataProvider tempDataProvider, IWebCache webCache, IDisqusComments comments)
 {
     _blogRepository = blogRepository;
     _webCache = webCache;
     _comments = comments;
     // TODO: This shouldn't be required to be passed in the constructor - Can set it as a property.
     TempDataProvider = tempDataProvider;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BlogController" /> class.
 /// </summary>
 /// <param name="blogRepository">The blog repository.</param>
 /// <param name="tempDataProvider">The temporary data provider</param>
 /// <param name="webCache">Web cache to clear when modifying posts</param>
 /// <param name="comments">Disqus comments service</param>
 public BlogController(IBlogRepository blogRepository, ITempDataProvider tempDataProvider, IWebCache webCache, IDisqusComments comments)
 {
     _blogRepository = blogRepository;
     _webCache       = webCache;
     _comments       = comments;
     // TODO: This shouldn't be required to be passed in the constructor - Can set it as a property.
     TempDataProvider = tempDataProvider;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BlogController" /> class.
 /// </summary>
 /// <param name="blogRepository">The blog repository.</param>
 /// <param name="comments">Disqus comments service</param>
 public BlogController(IBlogRepository blogRepository, IDisqusComments comments)
 {
     _blogRepository = blogRepository;
     _comments = comments;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BlogController" /> class.
 /// </summary>
 /// <param name="blogRepository">The blog repository.</param>
 /// <param name="comments">Disqus comments service</param>
 public BlogController(IBlogRepository blogRepository, IDisqusComments comments)
 {
     _blogRepository = blogRepository;
     _comments       = comments;
 }