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

CachingProfile.IsEnabled setter #156

Open
ziriax opened this issue Jul 29, 2024 · 2 comments
Open

CachingProfile.IsEnabled setter #156

ziriax opened this issue Jul 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ziriax
Copy link

ziriax commented Jul 29, 2024

The docs state that CachingProfile.IsEnabled can be set, but this property is init-only it seems.

It would be handy to be able to enable/disable caching at runtime; maybe this can be achieved differently?

@ziriax ziriax changed the title CachingProfile.IsEnabled CachingProfile.IsEnabled setter Jul 29, 2024
@gfraiteur
Copy link
Member

gfraiteur commented Jul 30, 2024

This property is init-only by design. The documentation text is a "feature" of the analyzers we're using (StyleCop).

Caching must now be enabled or disabled at initialization time. What would be your use case to be able to change this setting after startup?

@gfraiteur gfraiteur added the enhancement New feature or request label Sep 18, 2024
@gfraiteur
Copy link
Member

I'm keeping this open as a feature request but I'd like to better understand the use case.

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

No branches or pull requests

2 participants