コード例 #1
0
 public BlogViewModel(IHtmlProcessor htmlProcessor)
 {
     ProjectSettings = new ProjectSettings();
     Paging          = new PaginationSettings();
     Categories      = new Dictionary <string, int>();
     Archives        = new Dictionary <string, int>();
     filter          = htmlProcessor;
     BlogRoutes      = new DefaultBlogRoutes();
 }
コード例 #2
0
 public BlogViewModel(IContentProcessor contentProcessor)
 {
     _contentProcessor = contentProcessor;
     ProjectSettings   = new ProjectSettings();
     Paging            = new PaginationSettings();
     Categories        = new Dictionary <string, int>();
     Archives          = new Dictionary <string, int>();
     BlogRoutes        = new DefaultBlogRoutes();
 }
コード例 #3
0
        public BlogViewModel()
        {
            ProjectSettings = new ProjectSettings();
            Paging          = new PaginationSettings();
            Categories      = new Dictionary <string, int>();
            Archives        = new Dictionary <string, int>();

            filter         = new HtmlProcessor();
            cryptoHelper   = new CryptoHelper();
            EditorSettings = new EditorModel();
            BlogRoutes     = new DefaultBlogRoutes();
        }