コード例 #1
0
ファイル: Authors.cs プロジェクト: iamravikumar/WeBlog
 public Authors(IAuthorsCore authorsCore)
 {
     AuthorsCore = authorsCore ?? new AuthorsCore(CurrentBlog);
 }
コード例 #2
0
ファイル: PostListCore.cs プロジェクト: iamravikumar/WeBlog
 public PostListCore(BlogHomeItem currentBlog, IWeBlogSettings settings = null, IAuthorsCore authorsCore = null, IEntryManager entryManager = null)
     : this(currentBlog, settings, authorsCore, entryManager, null)
 {
 }
コード例 #3
0
ファイル: Authors.ascx.cs プロジェクト: iamravikumar/WeBlog
 public BlogAuthors(IAuthorsCore authorsCore = null)
 {
     AuthorsCore = authorsCore ?? new AuthorsCore(CurrentBlog);
 }
コード例 #4
0
ファイル: PostListCore.cs プロジェクト: iamravikumar/WeBlog
 /// <summary>
 /// Creates a new instance.
 /// </summary>
 /// <param name="currentBlog">The blog being listed.</param>
 /// <param name="settings">The settings to use. If null, the default settings will be used.</param>
 /// <param name="authorsCore">The <see cref="IAuthorsCore"/> component to use to retrieve author information.</param>
 /// <param name="entryManager">The <see cref="IEntryManager"/> to use to access entries.</param>
 /// <param name="templateManager">The <see cref="BaseTemplateManager"/> to use to access templates.</param>
 public PostListCore(BlogHomeItem currentBlog, IWeBlogSettings settings = null, IAuthorsCore authorsCore = null, IEntryManager entryManager = null, BaseTemplateManager templateManager = null)
 {
     CurrentBlog     = currentBlog;
     Settings        = settings ?? WeBlogSettings.Instance;
     AuthorsCore     = authorsCore ?? new AuthorsCore(CurrentBlog);
     EntryManager    = entryManager ?? ManagerFactory.EntryManagerInstance;
     TemplateManager = templateManager ?? ServiceLocator.ServiceProvider.GetService(typeof(BaseTemplateManager)) as BaseTemplateManager;
 }