public DiagnosticController( [WithKey(ServiceKeys.UserDatabase)] IScalarRepository<string, User> userDatabaseRepository, [WithKey(ServiceKeys.RootPath)] string rootUploadFolder, IGetUserSpaceInfo userSpaceQueryHandle, ILogger<DiagnosticController> logger ) : base(userDatabaseRepository) { this.rootUploadFolder = rootUploadFolder; this.userSpaceQueryHandle = userSpaceQueryHandle; this.logger = logger; }
/// <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; }