Exemplo n.º 1
0
 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;
 }
Exemplo n.º 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;
 }