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;
 }
Example #2
0
 /// <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;
 }
Example #3
0
 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;
 }