Kenneth Skovhede
40dd3c6816
Updated all license mentions to MIT
2024-02-28 15:45:30 +01:00
Kenneth Hsu
0d991d5712
Refine check for null web exception response.
2020-10-05 07:38:13 -07:00
Kenneth Hsu
71edf641a5
Avoid null reference exception when building Sia error messages.
...
If the resource does not provide an error response, the Response
property will be null.
This fixes #4193 .
2020-09-27 09:44:50 -07:00
Kenneth Hsu
afab61a05b
Use pattern matching to simplify casts.
2019-10-19 10:15:38 -07:00
Kenneth Hsu
b9ea6acf28
Disable warning about unused constructors.
2019-06-11 19:52:54 -07:00
Sean Templeton
b02b19e683
Change Put method name to PutAsync
2019-03-17 18:28:45 -05:00
Sean Templeton
0c122ff550
Change IBackend and IStreamingBackend to return Task for Put()
2019-03-03 21:43:10 -06:00
Andrew Meyer
0dc2199c13
Fix Sia API authentication not sending credentials
...
.NET's `System.Net.NetworkCredential` ignores credentials with blank usernames,
so instead we'll set the Authorization header manually.
2019-02-09 12:06:08 -06: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
Kenneth Hsu
20f2f37806
Remove unnecessary calls to String.Format.
2018-06-02 12:02:55 -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
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 Skovhede and GitHub
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
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
Ulf Hedlund
0988ba9600
minimum redundancy to wait for is now 1.0. Also, slightly better error handling.
2017-09-11 23:03:02 +02:00
Ulf Hedlund
5d2b889149
Simple sanity check for Sia target path
2017-09-04 14:14:08 +02:00
Ulf Hedlund
7150eecd5b
Trim target path properly
2017-09-02 00:07:06 +02:00
Ulf Hedlund
a446e31f9d
fixed issue with an empty Sia at first backup
2017-09-01 22:15:32 +02:00
Ulf Hedlund
dfad50ea51
cleaned up Sia options
2017-09-01 21:37:19 +02:00
Ulf Hedlund
b82c8a9d4c
fixed release configuration
2017-09-01 13:41:49 +02:00
Ulf Hedlund
e08dbd3b2f
removed erroneous parameters in upload endpoint
2017-09-01 01:15:03 +02:00
Ulf Hedlund
5e1eb0b718
Added Sia as a backend provider
2017-08-31 22:37:04 +02:00