コード例 #1
0
 public MemberListModel(ForumDbContext context, ForumTreeService forumService, UserService userService, IAppCache cache, CommonUtils utils,
                        IConfiguration config, LanguageProvider languageProvider, AnonymousSessionCounter sessionCounter)
     : base(context, forumService, userService, cache, utils, languageProvider)
 {
     _config         = config;
     _sessionCounter = sessionCounter;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 public ModeratorModel(ForumDbContext context, ForumTreeService forumService, UserService userService, IAppCache cache, CommonUtils utils,
                       LanguageProvider languageProvider, ModeratorService moderatorService, PostService postService, OperationLogService operationLogService)
     : base(context, forumService, userService, cache, utils, languageProvider)
 {
     _moderatorService    = moderatorService;
     _postService         = postService;
     _operationLogService = operationLogService;
 }
コード例 #4
0
 public FileModel(ForumDbContext context, ForumTreeService forumService, UserService userService, IAppCache cache, StorageService storageService,
                  IConfiguration config, CommonUtils utils, FileExtensionContentTypeProvider contentTypeProvider, LanguageProvider languageProvider)
     : base(context, forumService, userService, cache, utils, languageProvider)
 {
     _storageService      = storageService;
     _contentTypeProvider = contentTypeProvider;
     _config = config;
 }
コード例 #5
0
 public AuthenticatedPageModel(ForumDbContext context, ForumTreeService forumService, UserService userService, IAppCache cacheService, CommonUtils utils, LanguageProvider languageProvider)
 {
     ForumService     = forumService;
     Cache            = cacheService;
     UserService      = userService;
     Context          = context;
     Utils            = utils;
     LanguageProvider = languageProvider;
 }
コード例 #6
0
 public AuthenticationMiddleware(ILogger logger, IConfiguration config, IAppCache cache, ForumDbContext context,
                                 ForumTreeService forumTreeService, UserService userService, AnonymousSessionCounter sessionCounter)
 {
     _logger           = logger;
     _forumTreeService = forumTreeService;
     _context          = context;
     _userService      = userService;
     _config           = config;
     _cache            = cache;
     _sessionCounter   = sessionCounter;
 }
コード例 #7
0
 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;
 }
コード例 #8
0
 public IPLookupModel(ForumDbContext context, ForumTreeService forumService, UserService userService, IAppCache cache, CommonUtils utils, LanguageProvider languageProvider)
     : base(context, forumService, userService, cache, utils, languageProvider)
 {
 }
コード例 #9
0
 public ConfirmModel(ForumDbContext context, ForumTreeService forumService, UserService userService, IAppCache cache, CommonUtils utils, IConfiguration config, LanguageProvider languageProvider)
     : base(context, forumService, userService, cache, utils, languageProvider)
 {
     _config = config;
 }
コード例 #10
0
 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;
 }