Skip to main content
15 events
when toggle format what by license comment
Sep 7, 2020 at 16:25 comment added CDrosos I have update the question with the code i use now from your ideas and aepot notes, i believe is an acceptable workaround the way i check if internet connection is available.
Sep 7, 2020 at 13:23 vote accept CDrosos
Sep 6, 2020 at 9:37 history edited null CC BY-SA 4.0
more resources
Sep 6, 2020 at 9:31 comment added null @CDrosos updated, couple of options for you.
Sep 6, 2020 at 9:30 history edited null CC BY-SA 4.0
added 5092 characters in body, new link to resilient applications
Sep 5, 2020 at 14:34 comment added null @CDrosos, the keyvaluepair was used because the code to download from the internet really belongs elsewhere, and passing something back rather than updating directly allows that method to be moved, it's impossible to test this code so injecting a 'downloader' would be better in the long run. Have a look at the Polly framework, it allows automatic retries of a request. If the internet isn't on then it's good to think why and for how long. I'll be online later and have will have a look at the updates.
Sep 5, 2020 at 13:14 comment added CDrosos Also i have update the question with an idea on how to handle the network connection issue
Sep 5, 2020 at 13:08 comment added CDrosos great changes thanks, so with keyvaluepair it will be impossible for a date to exist twice in the list? while in my implementation it might be possible? 180 are all the results that can be in one day, so if they are 180 i will store them into the DB, if not then lets try to download them again.sometimes it is ok to have less than 180 but in the end of a day they should be 180 so i only store them if the results are 180 (we can call the 180 as of DailyDraws). What if i have a table with constrant strings of errors and when internet is not available i return the string error code?
Sep 5, 2020 at 11:26 comment added null @CDrosos you might want to clarify with the business or user of the system what they expect to happen in the case of an network outage, what would they want to happen if the data wasn't there. User experience people as well; if there are any.
Sep 5, 2020 at 11:11 history edited Vogel612 CC BY-SA 4.0
deleted 9 characters in body
Sep 5, 2020 at 11:10 history edited null CC BY-SA 4.0
added 3378 characters in body, to talk about web client failure
Sep 5, 2020 at 11:09 history edited Vogel612 CC BY-SA 4.0
remove stray closing brace
Sep 5, 2020 at 11:07 history edited null CC BY-SA 4.0
added 3378 characters in body
Sep 5, 2020 at 6:57 review Low quality posts
Sep 5, 2020 at 11:09
Sep 4, 2020 at 21:42 history answered null CC BY-SA 4.0