public LinkStatsService(ILinkRepository linkRepository, ILinkClickRepository linkClickRepository, ICountryRepository countryRepository)
 {
     this.linkRepository      = linkRepository;
     this.linkClickRepository = linkClickRepository;
     this.countryRepository   = countryRepository;
 }
Beispiel #2
0
        public async Task InvokeAsync(HttpContext context, ILinkRepository linkRepository, ILinkClickRepository linkClickRepository, IHttpClientFactory clientFactory)
        {
            var endpoint = context.GetEndpoint();

            if (endpoint == null)
            {
                var link = await linkRepository.GetLinkByShortLinkAsync(context.Request.Path.ToString()[1..]);