Esempio n. 1
0
        public VisitorsStatisticsController(IVisitorsStatisticsService visitorsStatisticsService, IHttpRequestInfoService httpRequestInfoService)
        {
            _visitorsStatisticsService = visitorsStatisticsService;
            _visitorsStatisticsService.CheckArgumentIsNull(nameof(_visitorsStatisticsService));

            _httpRequestInfoService = httpRequestInfoService;
            _httpRequestInfoService.CheckArgumentIsNull(nameof(_httpRequestInfoService));
        }
Esempio n. 2
0
 /// <summary>
 /// Html Helper Service
 /// </summary>
 public HtmlHelperService(
     ILogger <HtmlHelperService> logger,
     IDownloaderService downloaderService,
     IHttpRequestInfoService httpRequestInfoService)
 {
     _logger                 = logger ?? throw new ArgumentNullException(nameof(logger));
     _downloaderService      = downloaderService ?? throw new ArgumentNullException(nameof(downloaderService));
     _httpRequestInfoService = httpRequestInfoService ?? throw new ArgumentNullException(nameof(httpRequestInfoService));
 }
Esempio n. 3
0
        public ViewersStatistics(IVisitorsStatisticsService statService, IHttpRequestInfoService httpRequestInfoService, IHtmlHelperService htmlHelperService)
        {
            _statService = statService;
            _statService.CheckArgumentIsNull(nameof(_statService));

            _httpRequestInfoService = httpRequestInfoService;

            _htmlHelperService = htmlHelperService;
        }
Esempio n. 4
0
        /// <summary>
        /// Executes the result operation of the action method asynchronously.
        /// </summary>
        public override async Task ExecuteResultAsync(ActionContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            _httpContextInfo = context.HttpContext.RequestServices.GetRequiredService <IHttpRequestInfoService>();
            await writeSyndicationFeedToResponseAsync(context);
        }
 public HttpRequestInfoController(IHttpRequestInfoService httpRequestInfoService)
 {
     _httpRequestInfoService = httpRequestInfoService;
 }
Esempio n. 6
0
 public OpenSearchController(IHttpRequestInfoService httpRequestInfoService)
 {
     _httpRequestInfoService = httpRequestInfoService;
 }