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;
 }
 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;
 }
Exemple #3
0
 public UserViewSource(ILogger <UserViewSource> logger, IMapper mapper, IEntityProvider provider, IPermissionService service, BanViewSource banSource)
     : base(logger, mapper, provider)
 {
     this.service   = service;
     this.banSource = banSource;
 }
Exemple #4
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;
 }
 public BanViewService(ViewServicePack services, ILogger <BanViewService> logger, BanViewSource source)
     : base(services, logger)
 {
     this.source = source;
 }
 public FileViewService(ViewServicePack services, ILogger <FileViewService> logger, FileViewSource converter, BanViewSource banSource)
     : base(services, logger, converter, banSource)
 {
 }
Exemple #7
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;
 }
 //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)
 {
 }
 public CategoryViewService(ViewServicePack services, ILogger <CategoryViewService> logger, CategoryViewSource converter, BanViewSource banSource)
     : base(services, logger, converter, banSource)
 {
 }
Exemple #10
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;
 }
 public UserViewSource(ILogger <UserViewSource> logger, BaseEntityViewSourceServices services, IPermissionService service, BanViewSource banSource)
     : base(logger, services)
 {
     this.service   = service;
     this.banSource = banSource;
 }