public Authors(IAuthorsCore authorsCore) { AuthorsCore = authorsCore ?? new AuthorsCore(CurrentBlog); }
public PostListCore(BlogHomeItem currentBlog, IWeBlogSettings settings = null, IAuthorsCore authorsCore = null, IEntryManager entryManager = null) : this(currentBlog, settings, authorsCore, entryManager, null) { }
public BlogAuthors(IAuthorsCore authorsCore = null) { AuthorsCore = authorsCore ?? new AuthorsCore(CurrentBlog); }
/// <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; }