示例#1
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;
 }
示例#2
0
 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;
 }
示例#3
0
 public FileService(IOptions <RootFileFolderDirectory> rootDirectory)
 {
     _rootDirectory = rootDirectory.Value;
 }