Commit Graph
41 Commits
Author SHA1 Message Date
Kenneth Hsu afab61a05b Use pattern matching to simplify casts. 2019-10-19 10:15:38 -07:00
BlueBlock 815e30b63b update csproj toolverion and nuget packages 2019-07-31 13:20:03 -04:00
BlueBlock 08a1e9998a initial upgrade to framework 4.6.2
- no code changes except those noted below
- projects upgrade to 4.6.2
- wixinstaller project upgraded automatically by VisualStudio
- wixinstaller updated to require 4.6.2
- Library.Encryption changed to Standard2.0 so accommodate update to SharpAesCrypt
2019-07-26 09:18:16 -04:00
Kenneth Hsu edb2043a1e Remove misleading region tag.
Many of the members enclosed in this region were not related to the
IStreamingBackend interface.
2019-06-02 09:44:28 -07:00
Kenneth Hsu fa64f44677 Remove unused property. 2019-06-02 09:44:00 -07:00
Kenneth Hsu b86ec99eea Disable warning about unused class. 2019-06-02 09:42:39 -07:00
Joris d1161f9872 Codacy recommendation 2019-03-25 10:47:18 +01:00
Joris 5bffd23879 Commented on chunk size limiting 2019-03-25 10:46:58 +01:00
Joris 6440bf7c90 Fixed: The file X was downloaded and had size 0 but the size was expected to be N 2019-03-22 09:35:09 +01:00
Joris c93e0eed4d Processed code review findings 2019-03-21 10:14:57 +01:00
Joris eeab3ced58 Removed unnecessary GetResponse calls 2019-03-20 09:12:19 +01:00
JorisandGitHub 38968d03eb Removing Codacy recommendation 2019-03-19 21:44:22 +01:00
JorisandGitHub 719360a899 Merge branch 'master' into master 2019-03-19 21:40:46 +01:00
Joris c46e07b1e5 Implemented Jottacloud multithreaded downloading support 2019-03-19 19:32:00 +01:00
Sean Templeton b02b19e683 Change Put method name to PutAsync 2019-03-17 18:28:45 -05:00
Sean Templeton 9a42eca1d6 Update FTP and Jottacloud backends for async Put 2019-03-05 21:08:25 -06:00
Sean Templeton 0c122ff550 Change IBackend and IStreamingBackend to return Task for Put() 2019-03-03 21:43:10 -06:00
verhoek 72b1f6b6f8 Updated project files. 2018-11-02 22:45:07 +01:00
verhoek b2cc18426c Renamed Library.IO to Library.Common.IO.
Moved basic Platform functions to Library.Common.Platform.
Turned IO_OS into property within Library.Common.
2018-11-02 21:34:07 +01:00
verhoek bc053df294 Moved basic IO helper functions to Library.IO. 2018-10-27 12:17:07 +02:00
Kenneth Hsu 9e0b031fee Remove unused members. 2018-10-15 21:20:30 -07:00
Kenneth Hsu d4d1945faf Use utility method to append trailing slash.
This removes some duplicated code.
2018-09-22 10:19:45 -07:00
Kenneth Hsu f12858e6a5 Mark fields that shouldn't be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2018-05-25 10:04:52 -07:00
Kenneth Skovhede 842fd96543 Implemented a new logging system that is more transparent and allows a more granular way of picking log messages.
Added ID's to each log message and each exception to allow later introduction of a Knowledgebase service that explains each error in more detail.
2018-03-15 09:12:34 +01:00
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
Kenneth SkovhedeandGitHub 36aadc4ad1 Merge pull request #2910 from warwickmm/refactor/remove_redundant_tostring
Remove redundant calls to ToString
2017-11-27 08:50:00 +01:00
Kenneth Hsu 5fb1958ceb Remove redundant calls to ToString. 2017-11-26 15:44:34 -08: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 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
Albertony 28489ce104 Jottacloud backend: Minor adjustment in verification of file state, to be sure we are handling it consistently in all operations. 2017-03-12 22:28:08 +01:00
Albertony f116f20623 Jottacloud backend: Changed to newer REST API - jfs.jottacloud.com instead of www.jottacloud.com, x-jftp-version:2.4 header instead of X-JottaAPIVersion:2.2. Simplified the implementation of uploading, as I found that the method which the official client uses is not the one based on multipart form-data. Fixed deletion, and deleting is now permanent instead of moving to trash. 2017-03-10 01:00:24 +01:00
Albertony bafbb8dda6 Jottacloud backend minor update: Trash and Links are also reserved mount point names on the built-in device. 2017-03-09 13:53:18 +01:00
Albertony e6e1c65767 Jottacloud backend now avoids using the possibly throttled stream when pre-computing the MD5 hash 2017-03-06 16:48:25 +01:00
Albertony 8070268a3a Jottacloud backend now fully supports custom devices and custom mount points 2017-03-06 13:56:41 +01:00
Albertony 426166ff94 Cleanup in the Jottacloud backend code. Also added implementation for supporting user defined mount points, but disabled for now since using it needs some extra considerations to avoid trouble. 2017-03-05 16:02:32 +01:00
Albertony 81ef8e9e22 Jottacloud backend improvements 2017-03-04 21:27:55 +01:00
Albertony 5b6330f0ea Jottacloud backend now works with simple backup and restore test 2017-03-04 19:12:41 +01:00
Albertony d4f75aeb3a Jottacloud backend can now be properly configured and test button works 2017-03-04 16:07:03 +01:00
Albertony 12731e6529 Initial project set up for Jottacloud backend 2017-03-04 13:34:19 +01:00