Skip to content

Implement loading of Analysis into memory upon startup#13

Open
Szpoti wants to merge 2 commits into
turbolay:mainfrom
Szpoti:loadAnalysesWhenStart
Open

Implement loading of Analysis into memory upon startup#13
Szpoti wants to merge 2 commits into
turbolay:mainfrom
Szpoti:loadAnalysesWhenStart

Conversation

@Szpoti

@Szpoti Szpoti commented Apr 18, 2024

Copy link
Copy Markdown
Collaborator

This PR adds a function to AnalysisStoreManager to load saved Analysis from file when starting the software.

{
public class AnalysisStoreManager : PeriodicRunner
{
private static readonly string _directoryPath = Path.Combine(EnvironmentHelpers.GetDataDir(Path.Combine("WabiSabiMonitor", "DataStore", "Analysis")));

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved variable to readonly field.

Comment on lines +43 to +44
IoHelpers.EnsureDirectoryExists(_directoryPath);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a sanity check.

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.

1 participant