Skip to content

Conversation

@redsolo
Copy link

@redsolo redsolo commented Apr 13, 2015

If I run our application with the library and would like to catch all
exceptions not only those unhandled; then the Restore method will always
throw an exception (if there id no file). With this change it will check
if it exists and then return the default if it didnt exist. There is no
need to try to read the stream from the file because it will not be
there.

redsolo added 2 commits April 13, 2015 17:15
If I run our application with the library and would like to catch all
exceptions not only those unhandled; then the Restore method will always
throw an exception (if there id no file). With this change it will check
if it exists and then return the default if it didnt exist. There is no
need to try to read the stream from the file because it will not be
there.
I would like to be able to set the base folder path to our
application's local app data folder. Otherwise the files will not be
removed when our application is removed.  Since the method is public but
the class is only internal, I made the class public.

I know that we discussed that the default implementation could use the
product name, etc. But this doesnt help because my code is loaded by a
third party application, so that means that the files will be named like
the application and not base on our codebase.
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