예제 #1
0
 /// <summary>
 /// 获取字典值。
 /// </summary>
 /// <param name="path">标识。</param>
 /// <returns>返回字典值。</returns>
 protected string GetDictionaryValue(string path) =>
 (_settingDictionaryManager ?? (_settingDictionaryManager = GetRequiredService <ISettingDictionaryManager>()))
 .GetOrAddSettings(path);
 public ExtensionNameDropdownListTagHelper(IMediaDirectory mediaDirectory, ISettingDictionaryManager settingDictionaryManager)
 {
     _mediaDirectory           = mediaDirectory;
     _settingDictionaryManager = settingDictionaryManager;
 }
예제 #3
0
 public EditModel(ISettingDictionaryManager settingManager)
 {
     _settingManager = settingManager;
 }
예제 #4
0
 public SettingDictionaryTagHelper(ISettingDictionaryManager settingManager)
 {
     _settingManager = settingManager;
 }
예제 #5
0
 public IndexModel(ISettingDictionaryManager settingManager)
 {
     _settingManager = settingManager;
 }