Beispiel #1
0
 public PostRepository(
     IMapper mapper,
     ICurrentUtcDateProvider currentUtcDateProvider,
     IOptions <ConnectionStringOptions> connectionStringOptions,
     IDbConnectionFactory connectionFactory)
     : base(connectionStringOptions.Value.Default, connectionFactory)
 {
     this.mapper = mapper;
     this.currentUtcDateProvider = currentUtcDateProvider;
 }
Beispiel #2
0
 public PostService(
     IPostRepository postRepository,
     IAccountRepository accountRepository,
     ICommentRepository commentRepository,
     IImageConverter imageConverter,
     IFileService fileService,
     ICurrentUtcDateProvider currentUtcDateProvider,
     IMapper mapper,
     IOptionsMonitor <PostOptions> postOptions,
     ILogger <PostService> logger)
 {
     this.postRepository         = postRepository;
     this.accountRepository      = accountRepository;
     this.commentRepository      = commentRepository;
     this.imageConverter         = imageConverter;
     this.fileService            = fileService;
     this.currentUtcDateProvider = currentUtcDateProvider;
     this.mapper      = mapper;
     this.postOptions = postOptions;
     this.logger      = logger;
 }