public SiteService(ILogger <SiteService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IBranchRepository branchRepository, IProgramRepository programRepository, ISiteRepository siteRepository, ISiteSettingRepository siteSettingRepository, ISpatialDistanceRepository spatialDistanceRepository, ISystemRepository systemRepository, SiteLookupService siteLookupService, IUserRepository userRepository) : base(logger, dateTimeProvider, userContextProvider) { SetManagementPermission(Permission.ManageSites); _branchRepository = branchRepository ?? throw new ArgumentNullException(nameof(branchRepository)); _programRepository = programRepository ?? throw new ArgumentNullException(nameof(programRepository)); _siteRepository = siteRepository ?? throw new ArgumentNullException(nameof(siteRepository)); _siteSettingRepository = siteSettingRepository ?? throw new ArgumentNullException(nameof(siteSettingRepository)); _spatialDistanceRepository = spatialDistanceRepository ?? throw new ArgumentNullException(nameof(spatialDistanceRepository)); _systemRepository = systemRepository ?? throw new ArgumentNullException(nameof(systemRepository)); _siteLookupService = siteLookupService ?? throw new ArgumentException(nameof(siteLookupService)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); }
public ContactController(ISocialRepository socialRepo, ICategoryRepository categoryRepo, IPersonalSettingRepository personalRepo, ISiteSettingRepository siteSettingRepo) { _personalRepository = personalRepo; _siteSettingRepository = siteSettingRepo; _siteSettingRepository = siteSettingRepo; _categoryRepository = categoryRepo; _socialRepository = socialRepo; }
public HomeController(IImageRepository imageRepo, ISiteSettingRepository siteSettingRepo, IPersonalSettingRepository personalSettingRepo, IPostRepository postRepo, ISocialRepository socialRepo, IAbilityRepository abilityRepo, IProjectRepository projectRepo) { _socialRepository = socialRepo; _abilityRepository = abilityRepo; _projectRepository = projectRepo; _postRepository = postRepo; _personalSettingRepository = personalSettingRepo; _siteSettingRepository = siteSettingRepo; _imageRepository = imageRepo; }
public ConfigurationCache( ISiteSettingRepository siteSettingRepository, IMailSettingRepository mailSettingRepository, ISSOSettingRepository SSOSettingRepository, ICacheBase _cache ) { this.siteSettingRepository = siteSettingRepository; this.mailSettingRepository = mailSettingRepository; this.SSOSettingRepository = SSOSettingRepository; cache = _cache; }
public ConfigurationController( ISiteSettingRepository siteSettingRepository, IMailSettingRepository mailSettingRepository, ISSOSettingRepository ssoSettingRepository, ConfigurationCache configuration ) { this._siteSettingRepository = siteSettingRepository; this._mailSettingRepository = mailSettingRepository; this._ssoSettingRepository = ssoSettingRepository; this._configuration = configuration; }
public ConfigurationController( ISiteSettingRepository siteSettingRepository, IMailSettingRepository mailSettingRepository, ISSOSettingRepository SSOSettingRepository, ConfigurationCache configuration ) { this.siteSettingRepository = siteSettingRepository; this.mailSettingRepository = mailSettingRepository; this.SSOSettingRepository = SSOSettingRepository; this.configuration = configuration; }
public BlogController(ICommentRepository commentRepo, IImageRepository imageRepo, ICategoryRepository categoryRepo, ISiteSettingRepository siteSettingRepo, IPersonalSettingRepository personalSettingRepo, IPostRepository postRepo, ISocialRepository socialRepo, IAbilityRepository abilityRepo, IProjectRepository projectRepo) { _categoryRepository = categoryRepo; _socialRepository = socialRepo; _abilityRepository = abilityRepo; _projectRepository = projectRepo; _postRepository = postRepo; _personalSettingRepository = personalSettingRepo; _siteSettingRepository = siteSettingRepo; _imageRepository = imageRepo; _commentRepository = commentRepo; }
public ConfigurationCache( ISiteSettingRepository siteSettingRepository, IMailSettingRepository mailSettingRepository, ISSOSettingRepository ssoSettingRepository, ICacheBase cache ) { this._siteSettingRepository = siteSettingRepository; this._mailSettingRepository = mailSettingRepository; this._ssoSettingRepository = ssoSettingRepository; this._cache = cache; }
public SettingManager(ILogger <SettingManager> logger, ILanguageManager languageManager, ILayoutManager layoutManager, IPageRepository pageRepository, ISiteSettingRepository siteSettingRepository, IThemeManager themeManager) { _logger = logger; _languageManager = languageManager; _layoutManager = layoutManager; _pageRepository = pageRepository; _siteSettingRepository = siteSettingRepository; _themeManager = themeManager; }
public Report(IConfiguration config, IDateTimeProvider dateTimeProvider, IReportCriterionRepository reportCriterionRepository, IReportRequestRepository reportRequestRepository, ISiteSettingRepository siteSettingRepository) { Config = config ?? throw new ArgumentNullException(nameof(config)); DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); ReportCriterionRepository = reportCriterionRepository ?? throw new ArgumentNullException(nameof(reportCriterionRepository)); ReportRequestRepository = reportRequestRepository ?? throw new ArgumentNullException(nameof(reportRequestRepository)); SiteSettingRepository = siteSettingRepository ?? throw new ArgumentNullException(nameof(siteSettingRepository)); }
public SiteLookupService(ILogger <SiteLookupService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IConfigurationRoot config, IMemoryCache memoryCache, ISiteRepository siteRepository, ISiteSettingRepository siteSettingRepository, IInitialSetupService initialSetupService) : base(logger, dateTimeProvider) { _memoryCache = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache)); _config = config ?? throw new ArgumentNullException(nameof(config)); _siteRepository = siteRepository ?? throw new ArgumentNullException(nameof(siteRepository)); _siteSettingRepository = siteSettingRepository ?? throw new ArgumentNullException(nameof(siteSettingRepository)); _initialSetupService = initialSetupService ?? throw new ArgumentNullException(nameof(initialSetupService)); }
public SiteLookupService(ILogger <SiteLookupService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IConfiguration config, IDistributedCache cache, ISiteRepository siteRepository, ISiteSettingRepository siteSettingRepository, IUserRepository userRepository, IInitialSetupService initialSetupService) : base(logger, dateTimeProvider) { _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _config = config ?? throw new ArgumentNullException(nameof(config)); _siteRepository = siteRepository ?? throw new ArgumentNullException(nameof(siteRepository)); _siteSettingRepository = siteSettingRepository ?? throw new ArgumentNullException(nameof(siteSettingRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _initialSetupService = initialSetupService ?? throw new ArgumentNullException(nameof(initialSetupService)); }
public SiteLookupService(ILogger <SiteLookupService> logger, IDateTimeProvider dateTimeProvider, IConfiguration config, IGraCache cache, ISiteRepository siteRepository, ISiteSettingRepository siteSettingRepository, IUserRepository userRepository, IHttpContextAccessor httpContextAccessor, IInitialSetupService initialSetupService) : base(logger, dateTimeProvider) { _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _config = config ?? throw new ArgumentNullException(nameof(config)); _siteRepository = siteRepository ?? throw new ArgumentNullException(nameof(siteRepository)); _siteSettingRepository = siteSettingRepository ?? throw new ArgumentNullException(nameof(siteSettingRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor)); _initialSetupService = initialSetupService ?? throw new ArgumentNullException(nameof(initialSetupService)); }
/// <summary> /// Initializes the controller with dependency injection. /// </summary> /// <param name="dashParam">Implementation of IDashboardRepository.</param> /// <param name="authParam">Implementation of IAuthorizationRepository.</param> public DashboardController(IDashboardRepository dashParam, IAuthorizationRepository authParam, ISiteSettingRepository siteParam) { repo = dashParam; authRepo = authParam; site = siteParam; }
public SettingManager(ILifetimeScope container) { _logger = container.Resolve <ILogger <SettingManager> >(); _siteSettingRepository = container.Resolve <ISiteSettingRepository>(); }
public SiteSettingService(ISiteSettingRepository repository) { _repository = repository; }
public SiteSettingController(ILogger <SiteSettingController> logger, ISiteSettingRepository siteSettingRepository) { _siteSettingRepository = siteSettingRepository; _logger = logger; }
public SiteSettingController(ISiteSettingRepository siteSettingRepo) { _siteSettingRepository = siteSettingRepo; }
public ApplicationSettingsService(ISiteSettingRepository repository) { _repository = repository; }
public SiteSettingController(ILifetimeScope container) { _siteSettingRepository = container.Resolve <ISiteSettingRepository>(); _logger = container.Resolve <ILogger <SiteSettingController> >(); }
/// <summary> /// Enables constructor based dependency injection, which makes good unit tests possible /// </summary> /// <param name="param">Concrete implementation of IAdminRepository</param> public SuperController(IAdminRepository param, ISiteSettingRepository setParam) { repo = param; site = setParam; }
/// <summary> /// interface inject /// </summary> /// <param name="log">log</param> /// <param name="repository">repository</param> public SiteSettingAppService(ILogger <SiteSettingAppService> log, ISiteSettingRepository repository) { _log = log; _repository = repository; }