Commit Graph
20 Commits
Author SHA1 Message Date
Kenneth Skovhede bd863016fa Added support for returning multiple DNS names for cache invalidation.
Updated most backends to return the actual DNS names for cache invalidation.
2018-02-26 11:37:10 +01:00
Rune Henriksen fc77b476fc changed from NYI to null returns. Added check to skip DNS check if no DNSName is provided 2018-02-21 22:38:01 +01:00
Rune Henriksen 00292953c3 added DNSName getter on Backend interface and added NotImplementedException methods on each backend class 2018-02-18 00:18:44 +01:00
vnau 9b9d9b1297 Fixed compiler warnings. 2017-12-17 01:34:21 +07:00
Kenneth Hsu 8810e0130d Make string comparisons use ordinal (binary) sort rules.
These string comparisons should not be culture-aware.
2017-11-26 11:19:54 -08:00
Tyler Gill b3a3911d98 Change from wrapping yield returning methods with methods that do a try/catch, since they don't work due to lazy evaluation. 2017-09-25 23:19:31 -06:00
Tyler Gill 38883285ee Change IBackend.List() to return IEnumerable instead of List
By changing to IEnumerable, it is possible to iterate only a portion of the list, which is useful when not all entries are needed (e.g., when testing a connection).
All existing backends have been updated, and any which were able to be changed to yield return results in a straightforward way now do.
Many backends had a try/catch in the List() method. Due to the fact that yield returns can't be placed within a try/catch block, these have been refactored to either scope the try/catch to the parts that (should) be the only places throwing exceptions, so that exceptions are still caught and handled.
Note that lazy evaluation may cause some changes in behavior - exceptions that were previously thrown at the point of invokation of List() may now be thrown while it is being enumerated.
I believe this will not be problematic though, as the only well-known exception seems to be FolderMissingException, which should be thrown by Test(), but TestList() attempts to enumerate the list to force this exception.
Any places that require the legacy behavior can get it by simply converting the lazy enumerable to a List()
2017-09-25 23:17:45 -06:00
Kenneth Skovhede 5cae6ca60e Additional updates to NewtonSoft.Json 2017-09-23 14:46:14 +02:00
Kenneth Skovhede 046b522a8d Updated NewtonSoft.Json 2017-05-17 11:08:51 +02:00
Kenneth Skovhede 52eb8e8478 Disabled MSBuild for much faster builds on MacOS 2016-12-29 23:12:41 +01:00
Kenneth Skovhede 0c68daff6c Fixed all whitespace to be 4 spaces instead of tabs 2016-09-15 11:39:27 +02:00
Kenneth Skovhede 908b7fd5fc Fixed chunksize to work correctly regardless of the default buffer size and Dropbox chunk size 2016-09-08 16:48:44 +02:00
Kenneth Skovhede a449bb0149 Minor fixes to Dropbox backend to better report errors 2016-09-08 15:04:11 +02:00
Kenneth Skovhede 3eb9b4b8d7 Renamed DropBox to Dropbox 2016-09-07 19:49:45 +02:00
Kenneth Skovhede ee23428a0d Ensure that Auth token is always added to API calls in DropBox. 2016-09-07 19:40:03 +02:00
Kenneth Skovhede befa815845 Added various localizable strings to the Dropbox module 2016-09-07 19:26:12 +02:00
Kenneth Skovhede 1d81c20213 Fixed assembly version in DropBox module to prevent unwanted changes during the build process 2016-08-10 09:57:11 +02:00
Kenneth Skovhede 03dde1cf8f Style fixes to the DropBox backend 2016-07-07 13:44:19 +02:00
Wim Vancroonenburg d6f4e5cdca setup JSON.net dependency for dropbox backend 2016-06-29 14:48:23 +02:00
Wim Vancroonenburg 9154d71154 Initial implementation of Dropbox backend. Needs errorhandling 2016-04-13 09:16:12 +02:00