Пример #1
0
 public LocalFileService(IWebHostEnvironment hostingEnv, IAuditBaseRepository <LinFile, long> fileRepository, IOptions <FileStorageOption> fileStorageOption, ICurrentUser currentUser)
 {
     _hostingEnv        = hostingEnv;
     _fileRepository    = fileRepository;
     _fileStorageOption = fileStorageOption.Value;
     _currentUser       = currentUser;
 }
Пример #2
0
 public ClassifyController(IAuditBaseRepository <Classify> classifyRepository, IMapper mapper, ICurrentUser currentUser, IFileRepository fileRepository)
 {
     _classifyRepository = classifyRepository;
     _mapper             = mapper;
     _currentUser        = currentUser;
     _fileRepository     = fileRepository;
 }
 public QiniuController(IWebHostEnvironment hostingEnv, IFileService fileService, ITagService tagService, IAuditBaseRepository <Tag> tagAuditBaseRepository)
 {
     _hostingEnv             = hostingEnv;
     _fileService            = fileService;
     _tagService             = tagService;
     _tagAuditBaseRepository = tagAuditBaseRepository;
 }
 public PermissionService(ICurrentUser currentUser, IAuditBaseRepository <LinPermission, long> permissionRepository, IMapper mapper, IAuditBaseRepository <LinGroupPermission, long> groupPermissionRepository)
 {
     _currentUser          = currentUser;
     _permissionRepository = permissionRepository;
     _mapper = mapper;
     _groupPermissionRepository = groupPermissionRepository;
 }
 public ClassifyService(IAuditBaseRepository <Classify, Guid> classifyBaseRepository, IMapper mapper,
                        ICurrentUser currentUser, IFileRepository fileRepository) : base(classifyBaseRepository)
 {
     _mapper         = mapper;
     _currentUser    = currentUser;
     _fileRepository = fileRepository;
 }
 public ChannelService(IMapper mapper, IAuditBaseRepository <Channel, Guid> channelRepository, IAuditBaseRepository <ChannelTag, Guid> channelTagRepository, IFileRepository fileRepository)
 {
     _mapper               = mapper;
     _channelRepository    = channelRepository;
     _channelTagRepository = channelTagRepository;
     _fileRepository       = fileRepository;
 }
 public PermissionService(IFreeSql freeSql, ICurrentUser currentUser, IAuditBaseRepository <LinPermission, long> permissionRepository, IMapper mapper)
 {
     _freeSql              = freeSql;
     _currentUser          = currentUser;
     _permissionRepository = permissionRepository;
     _mapper = mapper;
 }
 public UserTagController(ICurrentUser currentUser, IAuditBaseRepository <Tag> tagRepository, IAuditBaseRepository <UserTag> userTagRepository, ITagService tagService)
 {
     _currentUser       = currentUser;
     _tagRepository     = tagRepository;
     _userTagRepository = userTagRepository;
     _tagService        = tagService;
 }
Пример #9
0
 public BaseItemService(IAuditBaseRepository <BaseItem> baseItemRepository, IMapper mapper,
                        IAuditBaseRepository <BaseType> baseTypeRepository)
 {
     _baseItemRepository = baseItemRepository;
     _mapper             = mapper;
     _baseTypeRepository = baseTypeRepository;
 }
Пример #10
0
 public TagService(IAuditBaseRepository <Tag> tagRepository, IAuditBaseRepository <UserTag> userTagRepository, IAuditBaseRepository <TagArticle> tagArticleRepository, IFileRepository fileRepository)
 {
     _tagRepository        = tagRepository;
     _userTagRepository    = userTagRepository;
     _tagArticleRepository = tagArticleRepository;
     _fileRepository       = fileRepository;
 }
Пример #11
0
 public ChannelService(IMapper mapper, IAuditBaseRepository <Channel> channelRepository, ICurrentUser currentUser, IAuditBaseRepository <ChannelTag> channelTagRepository)
 {
     _mapper               = mapper;
     _channelRepository    = channelRepository;
     _currentUser          = currentUser;
     _channelTagRepository = channelTagRepository;
 }
Пример #12
0
 public NotificationService(IAuditBaseRepository <Notification> notificationRepository, IMapper mapper,
                            ICurrentUser currentUser)
 {
     _notificationRepository = notificationRepository;
     _mapper      = mapper;
     _currentUser = currentUser;
 }
Пример #13
0
 public ArticleController(IAuditBaseRepository <Article> articleRepository, IMapper mapper, ICurrentUser currentUser, IArticleService articleService)
 {
     _articleRepository = articleRepository;
     _mapper            = mapper;
     _currentUser       = currentUser;
     _articleService    = articleService;
 }
 public UserSubscribeService(IAuditBaseRepository <UserSubscribe, Guid> userSubscribeRepository, IUserRepository userRepository, ICapPublisher capBus, IFileRepository fileRepository)
 {
     _userSubscribeRepository = userSubscribeRepository;
     _userRepository          = userRepository;
     _capBus         = capBus;
     _fileRepository = fileRepository;
 }
 public UserSubscribeController(IAuditBaseRepository <UserSubscribe> userSubscribeRepository, ICurrentUser currentUser, IUserRepository userRepository, BaseRepository <UserTag> userTagRepository, ICapPublisher capPublisher)
 {
     _userSubscribeRepository = userSubscribeRepository;
     _currentUser             = currentUser;
     _userRepository          = userRepository;
     _userTagRepository       = userTagRepository;
     _capBus = capPublisher;
 }
Пример #16
0
 public TagService(IAuditBaseRepository <Tag> tagRepository, IMapper mapper, ICurrentUser currentUser, IAuditBaseRepository <UserTag> userTagRepository, BaseRepository <TagArticle> tagArticleRepository)
 {
     _tagRepository        = tagRepository;
     _mapper               = mapper;
     _currentUser          = currentUser;
     _userTagRepository    = userTagRepository;
     _tagArticleRepository = tagArticleRepository;
 }
Пример #17
0
 public TagControllerTest() : base()
 {
     _hostingEnv    = ServiceProvider.GetService <IWebHostEnvironment>();
     _tagController = ServiceProvider.GetService <TagController>();;
     _mapper        = ServiceProvider.GetService <IMapper>();
     _tagRepository = ServiceProvider.GetService <IAuditBaseRepository <Tag> >();
     _freeSql       = ServiceProvider.GetService <IFreeSql>();
 }
Пример #18
0
 public CommentController(
     IAuditBaseRepository <Comment> commentAuditBaseRepository,
     ICommentService commentService, IAuditBaseRepository <Article> articleRepository)
 {
     _commentRepository = commentAuditBaseRepository;
     _commentService    = commentService;
     _articleRepository = articleRepository;
 }
 public AccountService(IAuditBaseRepository <LinUser, long> userRepository, IEmailSender emailSender,
                       IOptions <MailKitOptions> options, IUserIdentityService userIdentityService)
 {
     _userRepository      = userRepository;
     _emailSender         = emailSender;
     _mailKitOptions      = options.Value;
     _userIdentityService = userIdentityService;
 }
Пример #20
0
 public UserSubscribeController(IAuditBaseRepository <UserSubscribe> userSubscribeRepository,
                                ICurrentUser currentUser,
                                IUserSubscribeService userSubscribeService)
 {
     _userSubscribeRepository  = userSubscribeRepository;
     _currentUser              = currentUser;
     this.userSubscribeService = userSubscribeService;
 }
Пример #21
0
        public AccountController(IComponentContext componentContext, IConfiguration configuration, IAccountService accountService, IAuditBaseRepository <BlackRecord> blackRecordRepository)
        {
            bool isIdentityServer4 = configuration.GetSection("Service:IdentityServer4").Value?.ToBoolean() ?? false;

            _tokenService          = componentContext.ResolveNamed <ITokenService>(isIdentityServer4 ? typeof(IdentityServer4Service).Name : typeof(JwtTokenService).Name);
            _accountService        = accountService;
            _blackRecordRepository = blackRecordRepository;
        }
Пример #22
0
 public CommentController(IAuditBaseRepository <Comment> commentAuditBaseRepository, IMapper mapper, ICurrentUser currentUser, ICommentService commentService, IAuditBaseRepository <Article> articleRepository, ICapPublisher capBus)
 {
     _commentAuditBaseRepository = commentAuditBaseRepository;
     _mapper            = mapper;
     _currentUser       = currentUser;
     _commentService    = commentService;
     _articleRepository = articleRepository;
     _capBus            = capBus;
 }
 public ArticleRepositoryTest(ITestOutputHelper _testOutputHelper) : base()
 {
     _articleRepository    = ServiceProvider.GetRequiredService <IAuditBaseRepository <Article> >();
     _tagRepository        = ServiceProvider.GetRequiredService <IAuditBaseRepository <Tag> >();
     _tagArticleRepository = ServiceProvider.GetRequiredService <IAuditBaseRepository <TagArticle> >();
     _mapper  = ServiceProvider.GetRequiredService <IMapper>();
     _freeSql = ServiceProvider.GetRequiredService <IFreeSql>();
     this._testOutputHelper = _testOutputHelper;
 }
Пример #24
0
 public CommentService(IAuditBaseRepository <Comment> commentRepository,
                       IAuditBaseRepository <Article> articleRepository,
                       IFileRepository fileRepository, ICapPublisher capBus)
 {
     _commentRepository = commentRepository;
     _articleRepository = articleRepository;
     _fileRepository    = fileRepository;
     _capBus            = capBus;
 }
 public ArticleController(IAuditBaseRepository <Article> articleRepository, IMapper mapper, ICurrentUser currentUser, IArticleService articleService, ICapPublisher capBus, IClassifyService classifyService)
 {
     _articleRepository = articleRepository;
     _mapper            = mapper;
     _currentUser       = currentUser;
     _articleService    = articleService;
     _capBus            = capBus;
     _classifyService   = classifyService;
 }
Пример #26
0
 public UserLikeService(
     IAuditBaseRepository <UserLike> userLikeRepository,
     IArticleService articleService,
     ICommentService commentService)
 {
     _userLikeRepository = userLikeRepository;
     _articleService     = articleService;
     _commentService     = commentService;
 }
Пример #27
0
 public CommentService(IAuditBaseRepository <Comment> commentRepository,
                       IAuditBaseRepository <Article> articleRepository, ICurrentUser currentUser, IMapper mapper,
                       IFileRepository fileRepository)
 {
     _commentRepository = commentRepository;
     _articleRepository = articleRepository;
     _currentUser       = currentUser;
     _mapper            = mapper;
     _fileRepository    = fileRepository;
 }
Пример #28
0
 public GroupService(IFreeSql freeSql,
                     IPermissionService permissionService,
                     IAuditBaseRepository <LinGroup, long> groupRepository,
                     IAuditBaseRepository <LinUserGroup, long> userGroupRepository
                     )
 {
     _freeSql             = freeSql;
     _permissionService   = permissionService;
     _groupRepository     = groupRepository;
     _userGroupRepository = userGroupRepository;
 }
Пример #29
0
 public UserSubscribeController(IAuditBaseRepository <UserSubscribe> userSubscribeRepository,
                                ICurrentUser currentUser, IUserRepository userRepository, IAuditBaseRepository <UserTag> userTagRepository,
                                ICapPublisher capPublisher, IFileRepository fileRepository, UnitOfWorkManager unitOfWorkManager)
 {
     _userSubscribeRepository = userSubscribeRepository;
     _currentUser             = currentUser;
     _userRepository          = userRepository;
     _userTagRepository       = userTagRepository;
     _capBus            = capPublisher;
     _fileRepository    = fileRepository;
     _unitOfWorkManager = unitOfWorkManager;
 }
 public UserLikeService(IMapper mapper,
                        ICurrentUser currentUser,
                        IAuditBaseRepository <UserLike> userLikeRepository,
                        IArticleService articleService,
                        ICommentService commentService)
 {
     _mapper             = mapper;
     _currentUser        = currentUser;
     _userLikeRepository = userLikeRepository;
     _articleService     = articleService;
     _commentService     = commentService;
 }