public VisitorsStatisticsController(IVisitorsStatisticsService visitorsStatisticsService, IHttpRequestInfoService httpRequestInfoService) { _visitorsStatisticsService = visitorsStatisticsService; _visitorsStatisticsService.CheckArgumentIsNull(nameof(_visitorsStatisticsService)); _httpRequestInfoService = httpRequestInfoService; _httpRequestInfoService.CheckArgumentIsNull(nameof(_httpRequestInfoService)); }
/// <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)); }
public ViewersStatistics(IVisitorsStatisticsService statService, IHttpRequestInfoService httpRequestInfoService, IHtmlHelperService htmlHelperService) { _statService = statService; _statService.CheckArgumentIsNull(nameof(_statService)); _httpRequestInfoService = httpRequestInfoService; _htmlHelperService = htmlHelperService; }
/// <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; }
public OpenSearchController(IHttpRequestInfoService httpRequestInfoService) { _httpRequestInfoService = httpRequestInfoService; }