Ejemplo n.º 1
0
 public ModuleMessageViewService(ViewServicePack services, ILogger <ModuleMessageViewService> logger,
                                 ModuleMessageViewSource moduleMessageSource, CacheService <long, ModuleMessageView> singlecache)
     : base(services, logger)
 {
     this.moduleMessageSource = moduleMessageSource;
     this.singlecache         = singlecache;
 }
Ejemplo n.º 2
0
 public WatchViewService(ViewServicePack services, ILogger <WatchViewService> logger, WatchViewSource converter,
                         ContentViewService contentService)
     : base(services, logger)
 {
     this.converter      = converter;
     this.contentService = contentService;
 }
 public ActivityViewService(ViewServicePack services, ILogger <ActivityViewService> logger,
                            ActivityViewSource activity, WatchViewSource watchSource)
     : base(services, logger)
 {
     this.activity    = activity;
     this.watchSource = watchSource;
 }
Ejemplo n.º 4
0
 public ModuleViewService(ILogger <ModuleViewService> logger, ViewServicePack services, ModuleViewSource converter,
                          ModuleServiceConfig config, ModuleMessageViewService moduleMessageService, IModuleService service) : base(services, logger, converter)
 {
     this.config = config;
     this.moduleMessageService = moduleMessageService;
     this.moduleService        = service;
 }
Ejemplo n.º 5
0
 public ActivityViewService(ViewServicePack services, ILogger <ActivityViewService> logger,
                            ActivityViewSource activity, /*CommentViewSource comments,*/ WatchViewSource watchSource)
     : base(services, logger)
 {
     this.activity = activity;
     //this.comments = comments;
     this.watchSource = watchSource;
 }
Ejemplo n.º 6
0
 public CommentViewService(ViewServicePack services, ILogger <CommentViewService> logger,
                           CommentViewSource converter, WatchViewSource watchSource, BanViewSource banSource,
                           ICodeTimer timer) : base(services, logger)
 {
     this.converter   = converter;
     this.watchSource = watchSource;
     this.timer       = timer;
     this.banSource   = banSource;
 }
Ejemplo n.º 7
0
 public UserViewService(ILogger <UserViewService> logger, ViewServicePack services, IHashService hashService,
                        ITokenService tokenService, ILanguageService languageService, IEmailService emailService,
                        UserViewSource converter)
     : base(services, logger, converter)
 {
     this.hashService     = hashService;
     this.tokenService    = tokenService;
     this.languageService = languageService;
     this.emailService    = emailService;
 }
 public UnifiedModuleMessageViewService(ViewServicePack services, ILogger <UnifiedModuleMessageViewService> logger,
                                        ModuleMessageViewSource moduleMessageSource, ModuleMessageViewService moduleMessageService,
                                        ModuleRoomMessageViewService moduleRoomMessageService)
 {
     this.logger                   = logger;
     this.services                 = services;
     this.moduleMessageSource      = moduleMessageSource;
     this.moduleMessageService     = moduleMessageService;
     this.moduleRoomMessageService = moduleRoomMessageService;
 }
 public CommentViewService(ViewServicePack services, ILogger <CommentViewService> logger,
                           CommentViewSource converter, WatchViewSource watchSource, BanViewSource banSource,
                           ContentViewSource contentSource, ICodeTimer timer, CacheService <long, CommentView> singlecache) : base(services, logger)
 {
     this.converter     = converter;
     this.watchSource   = watchSource;
     this.timer         = timer;
     this.banSource     = banSource;
     this.contentSource = contentSource;
     this.singlecache   = singlecache;
 }
Ejemplo n.º 10
0
 public ContentViewService(ViewServicePack services, ILogger <ContentViewService> logger,
                           CategoryViewSource categoryService, ContentViewSource converter,
                           CommentViewSource commentSource, WatchViewSource watchSource, VoteViewSource voteSource, BanViewSource banSource)
     : base(services, logger, converter, banSource)
 {
     this.categoryService = categoryService;
     this.commentSource   = commentSource;
     this.watchSource     = watchSource;
     this.contentSource   = converter;
     this.voteSource      = voteSource;
 }
Ejemplo n.º 11
0
 public UserViewService(ILogger <UserViewService> logger, ViewServicePack services, IHashService hashService,
                        ITokenService tokenService, ILanguageService languageService, IEmailService emailService,
                        UserViewSource converter, CacheService <string, UserGroupHideData> hidecache,
                        CacheService <string, List <UserViewFull> > cacheService)
     : base(services, logger, converter)
 {
     this.hidecache       = hidecache;
     this.hashService     = hashService;
     this.tokenService    = tokenService;
     this.languageService = languageService;
     this.emailService    = emailService;
     this.cache           = cacheService;
 }
Ejemplo n.º 12
0
 public CategoryViewService(ViewServicePack services, ILogger <CategoryViewService> logger, CategoryViewSource converter, BanViewSource banSource)
     : base(services, logger, converter, banSource)
 {
 }
Ejemplo n.º 13
0
 public BanViewService(ViewServicePack services, ILogger <BanViewService> logger, BanViewSource source)
     : base(services, logger)
 {
     this.source = source;
 }
 //WARN: uses the same cache as comments! if we get a lot of module room messages, they could push out the
 //comments, which are arguably more important!
 public ModuleRoomMessageViewService(ViewServicePack services, ILogger <CommentViewService> logger,
                                     ModuleRoomMessageViewSource converter, WatchViewSource watchSource, BanViewSource banSource,
                                     ContentViewSource contentSource, ICodeTimer timer, SpecialModuleCacheService singlecache) :
     base(services, logger, converter, watchSource, banSource, contentSource, timer, singlecache)
 {
 }
Ejemplo n.º 15
0
        //public const int SpecialRetries = 5;
        //public const int SpecialDelayMs = 1000;

        public BaseEntityViewService(ViewServicePack services, ILogger <BaseEntityViewService <V, S> > logger, IViewSource <V, EntityPackage, EntityGroup, S> converter)
            : base(services, logger)
        {
            this.converter = converter;
        }
Ejemplo n.º 16
0
 public ModuleMessageViewService(ViewServicePack services, ILogger <ModuleMessageViewService> logger,
                                 ModuleMessageViewSource moduleMessageSource)
     : base(services, logger)
 {
     this.moduleMessageSource = moduleMessageSource;
 }
Ejemplo n.º 17
0
 public FileViewService(ViewServicePack services, ILogger <FileViewService> logger, FileViewSource converter, BanViewSource banSource)
     : base(services, logger, converter, banSource)
 {
 }
Ejemplo n.º 18
0
 public BaseViewServices(ViewServicePack services, ILogger <BaseViewServices <V, S> > logger)
 {
     this.services = services;
     this.logger   = logger;
 }
Ejemplo n.º 19
0
 public BasePermissionViewService(ViewServicePack services, ILogger <BasePermissionViewService <V, S> > logger,
                                  IViewSource <V, EntityPackage, EntityGroup, S> converter, BanViewSource banSource)
     : base(services, logger, converter)
 {
     this.banSource = banSource;
 }
Ejemplo n.º 20
0
 public CategoryViewService(ViewServicePack services, ILogger <CategoryViewService> logger, CategoryViewSource converter, BanViewSource banSource,
                            CacheService <string, List <CategoryView> > cache)
     : base(services, logger, converter, banSource)
 {
     this.cache = cache;
 }