You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want design a config ui.I want the flowing code get diffrent count. Because some setting is owned by admin, some by normal user.
var cc = await _settingManager.GetAllGlobalAsync();
var dd = await _settingManager.GetAllForCurrentUserAsync();
The text was updated successfully, but these errors were encountered:
CAH-FlyChen
changed the title
How to define scoped SettingDefinitionProvider?
How to define scoped SettingDefinition?
May 14, 2024
I've read it all.
but all the docuemnt is about how to get the value.
and my question is not related to the value, it's related how to define the gloable level key only , whitch not show on the user level.
May be use WithProviders function to define SettingDefinition? or isInherited property of SettingDefinition's ? I had readed the source code, It seems not related with my question. But i found a param "Scope" of SettingDefinition in the old aspnetboilerplate version whitch looks like what I need.
And sadly the document is not enouth for the methord.
I want design a config ui.I want the flowing code get diffrent count. Because some setting is owned by admin, some by normal user.
var cc = await _settingManager.GetAllGlobalAsync();
var dd = await _settingManager.GetAllForCurrentUserAsync();
The text was updated successfully, but these errors were encountered: