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
5c3c6e6417
Make property static.
2019-05-27 09:57:18 -07:00
Kenneth Hsu
906e290158
Disable warning about unused properties.
...
While these properties are unused, the Dropbox API v2 documentation does
not declare these to be optional.
2019-05-26 19:13:22 -07:00
Kenneth Hsu
5716f6c1ee
Remove unused properties.
...
According to the Dropbox API v2 documentation, these are optional.
2019-05-26 19:08:11 -07:00
Kenneth Hsu
e9cc733b93
Disable warning about unused property.
2019-05-17 21:13:53 -07:00
Kenneth Hsu
0fa688078a
Disable warnings about unused constructors.
2019-05-17 21:13:53 -07:00
Kenneth Hsu
28e99e7c7e
Disable warning about unused class.
2019-05-17 21:13:53 -07:00
Sean Templeton
b02b19e683
Change Put method name to PutAsync
2019-03-17 18:28:45 -05:00
Sean Templeton
8bd4b825c8
Fix several Codacy issues
2019-03-13 21:51:05 -05:00
Sean Templeton
4ca067a8f2
Update Dropbox and File 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
Kenneth Hsu
b5d9451b33
Remove redundant casts.
2019-01-21 19:30:52 -08: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
71c6aca8a7
Fixed IO calls in Filebackend.
...
Moved FileEntry to Library.IO due to AlphaFS not implementing
System.IO.FileInfo/DirectoryInfo.
2018-11-01 17:56:48 +01:00
verhoek
d932069b99
Fixed incorrect download files string.
2018-10-24 09:40:16 +02:00
verhoek
0752e0af0d
Moved content api strings to webapi.
2018-10-23 16:21:36 +02:00
verhoek
1db6504dea
Replaced paths in formatted strings to inner class.
2018-10-23 16:02:14 +02:00
verhoek
630f810cdd
Added listfiles url to dropbox's webapi.
2018-10-23 15:46:35 +02:00
verhoek
ab86df2ebb
Merge branch 'master' into webapi/dropbox
2018-10-23 15:34:00 +02:00
Kenneth Hsu
9e0b031fee
Remove unused members.
2018-10-15 21:20:30 -07:00
verhoek
f1088b8080
Factored out createfolder.
2018-06-23 19:58:56 +02:00
verhoek
d114b26ade
Fix name issue.
2018-06-23 19:45:11 +02:00
verhoek
ad5ae922f7
Unnecessary imports removed.
2018-06-23 19:44:16 +02: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
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