public ForumCommentController(
     [WithKey(ServiceKeys.UserDatabase)] IScalarRepository<string, User> userDatabaseRepository,
     [WithKey(ServiceKeys.ForumCommentsRepository)] IVectorRepository<int, Comment> forumCommentRepository
 ) : base(userDatabaseRepository)
 {
     this.forumCommentRepository = forumCommentRepository;
 }
 public ForumTitleController(
     [WithKey(ServiceKeys.UserDatabase)] IScalarRepository<string, User> userDatabaseRepository,
     [WithKey(ServiceKeys.ThreadPostTitleRepository)] IScalarRepository<int, ThreadPostTitle> threadTitleRepository,
     [WithKey(ServiceKeys.ForumCommentsRepository)] IVectorRepository<int, Comment> forumCommentRepository,
     ILogger<ForumTitleController> logger
     )
     : base(userDatabaseRepository)
 {
     this.threadTitleRepository = threadTitleRepository;
     this.forumCommentRepository = forumCommentRepository;
     this.logger = logger;
 }
 public ImageCommentController(
     [WithKey(ServiceKeys.UserDatabase)] IScalarRepository<string, User> userDatabaseRepository,
     IVectorRepository<int, Comment> imageCommentRepository,
     IAddItem whatsNew,
     IDeleteItem removeNews,
     LatestBroadcastService webSocketService
     )
     : base(userDatabaseRepository)
 {
     this.imageCommentRepository = imageCommentRepository;
     this.whatsNew = whatsNew;
     this.removeNews = removeNews;
     this.webSocketService = webSocketService;
 }
Beispiel #4
0
 public GetPage(
     IDbConnection connection,
     IVectorRepository<int, Comment> commentRepo,
     IScalarRepository<int, Image> imageRepo,
     IIndex<ServiceKeys, IScalarRepository<int, ThreadPostContent>> threadRepoIndex,
     IIndex<ServiceKeys, IVectorRepository<int, Comment>> forumCommentRepoIndex
 )
 {
     this.connection = connection;
     this.commentRepo = commentRepo;
     this.imageRepo = imageRepo;
     threadRepo = threadRepoIndex[ServiceKeys.ThreadPostContentRepository];
     forumCommentRepo = forumCommentRepoIndex[ServiceKeys.ForumCommentsRepository];
 }
 /// <summary>
 /// Instantiates a new <see cref="UserImageController"/> instance.
 /// </summary>
 /// <param name="userImageRepository">The image repository, which stores the images</param>
 public UserImageController(
     [WithKey(ServiceKeys.UserDatabase)] IScalarRepository<string, User> userDatabaseRepository,
     IScalarRepository<int, Image> userImageRepository,
     IVectorRepository<int, Comment> imageCommentsRepo,
     ImageHandleFactory imageHandleFactory,
     IAddItem whatsNew,
     IDeleteItem removeNews,
     LatestBroadcastService webSocketService,
     IGetUserSpaceInfo userSpaceHandles
 )
     : base(userDatabaseRepository)
 {
     this.userImageRepository = userImageRepository;
     this.imageCommentsRepo = imageCommentsRepo;
     this.imageHandleFactory = imageHandleFactory;
     this.whatsNew = whatsNew;
     this.removeNews = removeNews;
     this.webSocketService = webSocketService;
     this.userSpaceHandles = userSpaceHandles;
 }
 public ForumPostController(
     [WithKey(ServiceKeys.UserDatabase)] IScalarRepository<string, User> userDatabaseRepository,
     [WithKey(ServiceKeys.ThreadPostContentRepository)] IScalarRepository<int, ThreadPostContent> postRepository,
     [WithKey(ServiceKeys.ThreadPostTitleRepository)] IScalarRepository<int, ThreadPostTitle> titleRepository,
     [WithKey(ServiceKeys.ForumCommentsRepository)] IVectorRepository<int, Comment> forumCommentRepository,
     IAddItem whatsNew,
     IDeleteItem remove,
     IMarkPost markPost,
     LatestBroadcastService webSocketService,
     ILogger<ForumPostController> logger
 ) : base(userDatabaseRepository)
 {
     this.postRepository = postRepository;
     this.forumCommentRepository = forumCommentRepository;
     this.titleRepository = titleRepository;
     this.whatsNew = whatsNew;
     this.remove = remove;
     this.markPost = markPost;
     this.webSocketService = webSocketService;
     this.logger = logger;
 }
Beispiel #7
0
 public VectorController(IVectorRepository repo, ILogger <VectorController> logger, IUrlHelper urlHelper)
 {
     _vectorRepo = repo;
     _logger     = logger;
     _urlHelper  = urlHelper;
 }
Beispiel #8
0
 public VectorService(IVectorRepository iVectorRepository)
 {
     this._iVectorRepository = iVectorRepository;
 }