예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PublishedRouter"/> class.
 /// </summary>
 public PublishedRouter(
     IWebRoutingSection webRoutingSection,
     ContentFinderCollection contentFinders,
     IContentLastChanceFinder contentLastChanceFinder,
     IVariationContextAccessor variationContextAccessor,
     ServiceContext services,
     IProfilingLogger proflog)
 {
     _webRoutingSection       = webRoutingSection ?? throw new ArgumentNullException(nameof(webRoutingSection));
     _contentFinders          = contentFinders ?? throw new ArgumentNullException(nameof(contentFinders));
     _contentLastChanceFinder = contentLastChanceFinder ?? throw new ArgumentNullException(nameof(contentLastChanceFinder));
     _services                 = services ?? throw new ArgumentNullException(nameof(services));
     _profilingLogger          = proflog ?? throw new ArgumentNullException(nameof(proflog));
     _variationContextAccessor = variationContextAccessor ?? throw new ArgumentNullException(nameof(variationContextAccessor));
     _logger = proflog;
 }