Exemple #1
0
 public FeaturedModel(
     IBlogConfig blogConfig, IPostQueryService postQueryService, IBlogCache cache)
 {
     _blogConfig       = blogConfig;
     _postQueryService = postQueryService;
     _cache            = cache;
 }
Exemple #2
0
 public MainPostQueryService(
     IMathHubDbContext mathHubDbContext,
     IPostQueryService postQueryService)
 {
     this.ctx = mathHubDbContext.GetDbContext();
     this._postQueryService = postQueryService;
 }
Exemple #3
0
 public PostController(ICommandService commandService, IPostQueryService queryService, IContextService contextService, ISectionQueryService sectionqueryService)
 {
     _commandService      = commandService;
     _postQueryService    = queryService;
     _contextService      = contextService;
     _sectionQueryService = sectionqueryService;
 }
Exemple #4
0
 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);
 }
Exemple #5
0
        public TagListModel(
            ITagService tagService, IBlogConfig blogConfig, IPostQueryService postQueryService, IBlogCache cache)
        {
            _tagService       = tagService;
            _blogConfig       = blogConfig;
            _postQueryService = postQueryService;
            _cache            = cache;

            P = 1;
        }
Exemple #6
0
 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;
        }
Exemple #8
0
 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);
     }
 }
Exemple #9
0
 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;
 }
Exemple #10
0
 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;
 }
Exemple #12
0
        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);
        }
Exemple #13
0
 public PostDraftModel(IPostQueryService postQueryService)
 {
     _postQueryService = postQueryService;
 }
 public RecycleBinModel(IPostQueryService postQueryService)
 {
     _postQueryService = postQueryService;
 }
Exemple #15
0
 public PostController(ICommandService commandService, IPostQueryService queryService, IContextService contextService)
 {
     _commandService = commandService;
     _queryService   = queryService;
     _contextService = contextService;
 }
Exemple #16
0
 public ArchiveListModel(IPostQueryService postQueryService)
 {
     _postQueryService = postQueryService;
 }
Exemple #17
0
 public TagsController(IPostQueryService postQueryService)
 {
     _postQueryService = postQueryService;
 }
Exemple #18
0
 public HomeController(ICommandService commandService, IPostQueryService postQueryService)
 {
     _commandService   = commandService;
     _postQueryService = postQueryService;
 }
Exemple #19
0
 public PostController(ICommandService commandService, IPostQueryService queryService, IContextService contextService)
 {
     _commandService = commandService;
     _queryService = queryService;
     _contextService = contextService;
 }
 public PostInsightsModel(IPostQueryService postQueryService)
 {
     _postQueryService = postQueryService;
 }
 public PostPreviewModel(IPostQueryService postQueryService)
 {
     _postQueryService = postQueryService;
 }
Exemple #22
0
 public PostController(IPostQueryService postQueryService, IPostCommandService postCommandService, IUserService userService)
 {
     _postQueryService   = postQueryService;
     _postCommandService = postCommandService;
     _userService        = userService;
 }