Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SystemSettingsController"/> class.
 /// </summary>
 /// <param name="messageExceptionFinder">The message exception finder.</param>
 /// <param name="workContext">The work context.</param>
 /// <param name="systemSettingService">The system setting service.</param>
 public SystemSettingsController(
     IMessageExceptionFinder messageExceptionFinder,
     IWorkContext workContext,
     ICoreSettingService systemSettingService) : base(messageExceptionFinder)
 {
     this.workContext          = workContext;
     this.systemSettingService = systemSettingService;
 }
 /// <summary>
 /// Gets the specified key.
 /// </summary>
 /// <typeparam name="TValue">The type of the value.</typeparam>
 /// <param name="settingService">The setting service.</param>
 /// <param name="key">The key.</param>
 /// <returns>the value of the setting</returns>
 public static TValue Get <TValue>(this ICoreSettingService settingService, string key)
 {
     return(settingService.GetCachedSetting <TValue, SystemSetting>(key));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskSettings"/> class.
 /// </summary>
 /// <param name="coreSettingService">The core setting service.</param>
 public TaskSettings(ICoreSettingService coreSettingService)
 {
     this.coreSettingService = coreSettingService;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GeneralSettings"/> class.
 /// </summary>
 /// <param name="coreSettingService">The core setting service.</param>
 public GeneralSettings(ICoreSettingService coreSettingService)
 {
     this.coreSettingService = coreSettingService;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SecuritySettings"/> class.
 /// </summary>
 /// <param name="coreSettingService">The core setting service.</param>
 public SecuritySettings(ICoreSettingService coreSettingService)
 {
     this.settingService = coreSettingService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationSettings"/> class.
 /// </summary>
 /// <param name="coreSettingService">The setting service.</param>
 public NotificationSettings(ICoreSettingService coreSettingService)
 {
     this.coreSettingService = coreSettingService;
 }