public ViewForumModel(ForumDbContext context, ForumTreeService forumService, UserService userService, IAppCache cache, BBCodeRenderingService renderingService, IConfiguration config, CommonUtils utils, LanguageProvider languageProvider) : base(context, forumService, userService, cache, utils, languageProvider) { _config = config; _renderingService = renderingService; }
public PostingModel(CommonUtils utils, ForumDbContext context, ForumTreeService forumService, UserService userService, IAppCache cacheService, PostService postService, StorageService storageService, WritingToolsService writingService, BBCodeRenderingService renderingService, IConfiguration config, LanguageProvider languageProvider, IHttpClientFactory httpClientFactory) : base(context, forumService, userService, cacheService, utils, languageProvider) { PollExpirationDaysString = "1"; PollMaxOptions = 1; DeleteFileDummyForValidation = new List <string>(); _postService = postService; _storageService = storageService; _writingService = writingService; _renderingService = renderingService; _config = config; _imageProcessorOptions = _config.GetObject <ExternalImageProcessor>(); _imageProcessorClient = _imageProcessorOptions.Api?.Enabled == true?httpClientFactory.CreateClient(_imageProcessorOptions.Api.ClientName) : null; }
public PrivateMessagesModel(ForumDbContext context, ForumTreeService forumService, UserService userService, IAppCache cache, BBCodeRenderingService renderingService, CommonUtils utils, LanguageProvider languageProvider) : base(context, forumService, userService, cache, utils, languageProvider) { _renderingService = renderingService; }