public LoadPhotosCommandHandler(IDateTime dateTime , IOptions <RootFileFolderDirectory> rootDirectory , IOptions <PhotosDirectory> photosDirectory , IFileService fileService , IUserAccessor userAccessor , IAppDbContext context , IMapper mapper) { _dateTime = dateTime; _fileService = fileService; _userAccessor = userAccessor; _context = context; _mapper = mapper; _rootDirectory = rootDirectory.Value; _photosDirectory = photosDirectory.Value; }
public LoadFilesCommandHandler(IDateTime dateTime , IOptions <RootFileFolderDirectory> rootDirectory , IOptions <FilesDirectory> filesDirectory , IFileService fileService , IUserAccessor userAccessor , IAppDbContext context , IMapper mapper , IStringLocalizer <PostsResource> postLocalizer) { _dateTime = dateTime; _rootDirectory = rootDirectory.Value; _filesDirectory = filesDirectory.Value; _fileService = fileService; _userAccessor = userAccessor; _context = context; _mapper = mapper; _postLocalizer = postLocalizer; }
public FileService(IOptions <RootFileFolderDirectory> rootDirectory) { _rootDirectory = rootDirectory.Value; }