public FeaturedModel( IBlogConfig blogConfig, IPostQueryService postQueryService, IBlogCache cache) { _blogConfig = blogConfig; _postQueryService = postQueryService; _cache = cache; }
public MainPostQueryService( IMathHubDbContext mathHubDbContext, IPostQueryService postQueryService) { this.ctx = mathHubDbContext.GetDbContext(); this._postQueryService = postQueryService; }
public PostController(ICommandService commandService, IPostQueryService queryService, IContextService contextService, ISectionQueryService sectionqueryService) { _commandService = commandService; _postQueryService = queryService; _contextService = contextService; _sectionQueryService = sectionqueryService; }
static TestBase() { ConfigSettings.Initialize(); InitializeENode(); _commandService = ObjectContainer.Resolve<ICommandService>(); _sectionQueryService = ObjectContainer.Resolve<ISectionQueryService>(); _postQueryService = ObjectContainer.Resolve<IPostQueryService>(); _replyQueryService = ObjectContainer.Resolve<IReplyQueryService>(); ObjectContainer.Resolve<ILockService>().AddLockKey(typeof(Account).Name); }
public TagListModel( ITagService tagService, IBlogConfig blogConfig, IPostQueryService postQueryService, IBlogCache cache) { _tagService = tagService; _blogConfig = blogConfig; _postQueryService = postQueryService; _cache = cache; P = 1; }
static TestBase() { ConfigSettings.Initialize(); InitializeENode(); _commandService = ObjectContainer.Resolve <ICommandService>(); _sectionQueryService = ObjectContainer.Resolve <ISectionQueryService>(); _postQueryService = ObjectContainer.Resolve <IPostQueryService>(); _replyQueryService = ObjectContainer.Resolve <IReplyQueryService>(); ObjectContainer.Resolve <ILockService>().AddLockKey(typeof(Account).Name); }
public CategoryListModel( ICategoryService categoryService, IBlogConfig blogConfig, IBlogCache cache, IPostQueryService postQueryService) { _categoryService = categoryService; _blogConfig = blogConfig; _cache = cache; _postQueryService = postQueryService; P = 1; }
protected static void Initialize() { if (_enodeConfiguration == null) { ConfigSettings.Initialize(); InitializeENode(); _commandService = ObjectContainer.Resolve <ICommandService>(); _sectionQueryService = ObjectContainer.Resolve <ISectionQueryService>(); _postQueryService = ObjectContainer.Resolve <IPostQueryService>(); _replyQueryService = ObjectContainer.Resolve <IReplyQueryService>(); _logger = ObjectContainer.Resolve <ILoggerFactory>().Create(typeof(TestBase).Name); ObjectContainer.Resolve <ILockService>().AddLockKey(typeof(Account).Name); } }
public PostController( IPostQueryService postQueryService, IPostManageService postManageService, IBlogConfig blogConfig, ITimeZoneResolver timeZoneResolver, IPingbackSender pingbackSender, ILogger <PostController> logger) { _postQueryService = postQueryService; _postManageService = postManageService; _blogConfig = blogConfig; _timeZoneResolver = timeZoneResolver; _pingbackSender = pingbackSender; _logger = logger; }
public EditPostModel( ICategoryService catService, IPostQueryService postQueryService, ITimeZoneResolver timeZoneResolver) { _catService = catService; _postQueryService = postQueryService; _timeZoneResolver = timeZoneResolver; ViewModel = new() { IsPublished = false, Featured = false, EnableComment = true, ExposedToSiteMap = true, FeedIncluded = true }; }
public MetaWeblogService( IBlogConfig blogConfig, ITimeZoneResolver timeZoneResolver, ILogger <MetaWeblogService> logger, ITagService tagService, ICategoryService categoryService, IPostQueryService postQueryService, IPostManageService postManageService, IBlogPageService blogPageService, IBlogImageStorage blogImageStorage, IFileNameGenerator fileNameGenerator) { _blogConfig = blogConfig; _timeZoneResolver = timeZoneResolver; _logger = logger; _tagService = tagService; _categoryService = categoryService; _postQueryService = postQueryService; _blogPageService = blogPageService; _blogImageStorage = blogImageStorage; _fileNameGenerator = fileNameGenerator; _postManageService = postManageService; }
protected static void Initialize() { if (_enodeConfiguration != null) { CleanupEnode(); } var configuration = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build(); ConfigSettings.ForumConnectionString = configuration.GetConnectionString("forum"); ConfigSettings.ENodeConnectionString = configuration.GetConnectionString("enode"); InitializeENode(); _logger = ObjectContainer.Resolve <ILoggerFactory>().Create(typeof(TestBase)); _logger.Info("ENode initialized."); _commandService = ObjectContainer.Resolve <ICommandService>(); _sectionQueryService = ObjectContainer.Resolve <ISectionQueryService>(); _postQueryService = ObjectContainer.Resolve <IPostQueryService>(); _replyQueryService = ObjectContainer.Resolve <IReplyQueryService>(); ObjectContainer.Resolve <ILockService>().AddLockKey(typeof(Account).Name); }
public PostDraftModel(IPostQueryService postQueryService) { _postQueryService = postQueryService; }
public RecycleBinModel(IPostQueryService postQueryService) { _postQueryService = postQueryService; }
public PostController(ICommandService commandService, IPostQueryService queryService, IContextService contextService) { _commandService = commandService; _queryService = queryService; _contextService = contextService; }
public ArchiveListModel(IPostQueryService postQueryService) { _postQueryService = postQueryService; }
public TagsController(IPostQueryService postQueryService) { _postQueryService = postQueryService; }
public HomeController(ICommandService commandService, IPostQueryService postQueryService) { _commandService = commandService; _postQueryService = postQueryService; }
public PostInsightsModel(IPostQueryService postQueryService) { _postQueryService = postQueryService; }
public PostPreviewModel(IPostQueryService postQueryService) { _postQueryService = postQueryService; }
public PostController(IPostQueryService postQueryService, IPostCommandService postCommandService, IUserService userService) { _postQueryService = postQueryService; _postCommandService = postCommandService; _userService = userService; }