Skip to content

Get protected root path once #10

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

quanmaiepi
Copy link
Contributor

As Shell.Paths.ProtectedRootPath uses
ServiceLocator.Current.GetInstance internally
calling it every time will be expensive as
dependency will have to be built. As the property
is readonly, we only need to get it once for the life time of the app

@cbanner cbanner assigned cbanner and unassigned cbanner Feb 19, 2025
@cbanner cbanner self-requested a review February 19, 2025 11:57
@quanmaiepi quanmaiepi force-pushed the bugfix/protected-root-path branch from f97fcd6 to 625586b Compare February 19, 2025 13:01
As Shell.Paths.ProtectedRootPath uses
ServiceLocator.Current.GetInstance internally
calling it every time will be expensive as
dependency will have to be built. As the property
is readonly, we only need to get it once for the life time
of the app
@quanmaiepi quanmaiepi force-pushed the bugfix/protected-root-path branch from 625586b to c3d46b8 Compare February 19, 2025 13:31
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

Successfully merging this pull request may close these issues.

2 participants