コード例 #1
0
 public ViewServicePack(IEntityProvider provider, IMapper mapper, IPermissionService permissions, IHistoryService history, ICodeTimer timer)
 {
     this.provider    = provider;
     this.mapper      = mapper;
     this.permissions = permissions;
     this.history     = history;
     this.timer       = timer;
 }
コード例 #2
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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public ChainService(ILogger <ChainService> logger, ChainServices services, RelationListenerService relationService, ChainServiceConfig config,
                     SystemConfig systemConfig, IEntityProvider provider, ICodeTimer timer)
 {
     this.logger          = logger;
     this.services        = services;
     this.relationService = relationService;
     this.config          = config;
     this.provider        = provider;
     this.systemConfig    = systemConfig;
     this.timer           = timer;
 }
コード例 #5
0
 public BaseViewSourceServices(IMapper mapper, IEntityProvider provider, ICodeTimer timer)
 {
     this.mapper   = mapper;
     this.provider = provider;
     this.timer    = timer;
 }
コード例 #6
0
 //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)
 {
 }
コード例 #7
0
 public BaseEntityViewSourceServices(IMapper mapper, IEntityProvider provider, ICodeTimer timer,
                                     IHistoryService history) : base(mapper, provider, timer)
 {
     this.history = history;
 }