public SystemAdminController(ISettingsProvider settingsProvider, ISystemAdminHelperService systemAdminHelperService, ISeoProvider seoProvider, IUserSearch userSearch, IClaimsProvider claimsProvider) { _settingsProvider = settingsProvider ?? throw new ArgumentNullException(nameof(settingsProvider)); _systemAdminHelperService = systemAdminHelperService ?? throw new ArgumentNullException(nameof(systemAdminHelperService)); _seoProvider = seoProvider ?? throw new ArgumentNullException(nameof(seoProvider)); _userSearch = userSearch ?? throw new ArgumentNullException(nameof(userSearch)); _claimsProvider = claimsProvider ?? throw new ArgumentNullException(nameof(claimsProvider)); }
public SeoMiddleware(RequestDelegate next, IMemoryCache memoryCache, ISeoProvider seoProvider) { _memoryCache = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache)); _seoProvider = seoProvider ?? throw new ArgumentNullException(nameof(seoProvider)); if (memoryCache == null) { throw new ArgumentNullException(nameof(memoryCache)); } _next = next; }