示例#1
0
 public DeletePhotosCommandHandler(IAppDbContext context
                                   , IUserAccessor userAccessor
                                   , IFileService fileService
                                   , IOptions <PhotosDirectory> photoDirectory)
 {
     _context        = context;
     _userAccessor   = userAccessor;
     _fileService    = fileService;
     _photoDirectory = photoDirectory.Value;
 }
示例#2
0
 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;
 }
示例#3
0
 public UsersController(IFileService fileService
                        , IOptions <PhotosDirectory> photosDirectory)
 {
     _fileService     = fileService;
     _photosDirectory = photosDirectory.Value;
 }