Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to define scoped SettingDefinition? #19813

Open
CAH-FlyChen opened this issue May 14, 2024 · 2 comments
Open

How to define scoped SettingDefinition? #19813

CAH-FlyChen opened this issue May 14, 2024 · 2 comments

Comments

@CAH-FlyChen
Copy link

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();

@CAH-FlyChen CAH-FlyChen changed the title How to define scoped SettingDefinitionProvider? How to define scoped SettingDefinition? May 14, 2024
@realLiangshiwei
Copy link
Member

@CAH-FlyChen
Copy link
Author

CAH-FlyChen commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants