public ShortenerService(
     IShortenUrlRepository shortenUrlRepository,
     IShortenUrlLogRepository shortenUrlLogRepository)
 {
     _shortenUrlRepository = shortenUrlRepository;
     _logRepository        = shortenUrlLogRepository;
 }
예제 #2
0
 public ShortenUrlCommandHandler(
     IUrlHasher urlHasher,
     IShortenUrlRepository shortenUrlRepository,
     ICodeServiceClient codeServiceClient,
     IPublishEndpoint publishEndpoint,
     IDistributedCache distributedCache)
 {
     _urlHasher            = urlHasher;
     _shortenUrlRepository = shortenUrlRepository;
     _codeServiceClient    = codeServiceClient;
     _publishEndpoint      = publishEndpoint;
     _distributedCache     = distributedCache;
 }
예제 #3
0
 public ShortenUrlService(IShortenUrlRepository shortenUrlRepository, ICodeService codeService)
 {
     _shortenUrlRepository = shortenUrlRepository;
     _codeService          = codeService;
 }
 public ShortenUrlService(IShortenUrlRepository repo, IMapper mapper, IValidationHelper validator)
 {
     _repo      = repo;
     _mapper    = mapper;
     _validator = validator;
 }
예제 #5
0
 public ShortenUrlService(IShortenUrlRepository repository)
 {
     shortenUrlRepository = repository;
 }
 public ValidationHelper(IShortenUrlRepository repo)
 {
     _repo = repo;
 }