/// <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; }
public EditModel(ISettingDictionaryManager settingManager) { _settingManager = settingManager; }
public SettingDictionaryTagHelper(ISettingDictionaryManager settingManager) { _settingManager = settingManager; }
public IndexModel(ISettingDictionaryManager settingManager) { _settingManager = settingManager; }