Tyler Gill
20fc793dee
Add OAuthHttpMessageHandler helper class to OAuthHelper library.
...
This class implements the abstract HttpMessageHandler class (mostly via the default HttpClientHandler implementation).
This abstract class is used by System.Net.Http.HttpClient as the underlying HTTP mechanism, and in this particular case is used to automatically add an authorization header to each request.
It also provides a method for marking a request as one that should not be authenticated.
2018-03-20 14:00:52 -06:00
Tyler Gill
f9a8b30b2f
Update JSONWebHelper.PostAndGetJSONData to remove parameters that aren't actually being used (setup and setupreq).
...
These parameters weren't being used in the method body, or being passed in by any callers (it looks like a copy / paste error when a previous method was converted into this one)
These are replaced with a new optional parameter (method) which allows the caller to request a custom HTTP method to be used.
2018-03-20 13:56:05 -06:00
Tyler Gill
2b4fb9a65f
SizeParser can use OrdinalIgnoreCase instead of ToLower().
2018-03-20 13:44:15 -06:00
Tyler Gill
73b6fe2a01
Add extension methods to the general Utility class for emulating the await keyword in non-async code.
...
Using GetAwaiter().GetResult() is similar to using Task.Result, but rethrows the original exception rather than wrapping it in an (unnecessary) AggregateException.
2018-03-20 13:41:57 -06:00
Kenneth Skovhede and GitHub
3ec2b78828
Merge pull request #3086 from warwickmm/feature/disable_on_battery
...
Add option to disable backup when on battery power
2018-03-20 09:19:01 +01:00
Kenneth Skovhede and GitHub
6545b5cfa4
Merge pull request #3109 from warwickmm/fix_xml_ampersand
...
Fix encoding of ampersand in XML documentation
2018-03-20 09:01:48 +01:00
Kenneth Skovhede and GitHub
f804eaa7ab
Merge pull request #3108 from warwickmm/readonly_lock_objects
...
Make fields containing lock objects readonly
2018-03-20 09:01:22 +01:00
Kenneth Hsu
c00c6fd19b
Make fields containing lock objects readonly.
...
If one of these fields is accidentally reassigned, it's possible for
threads to be oblivious to an existing lock. By making the fields
readonly, we will be notified at compile-time if we inadvertently
redefine one of these fields.
2018-03-17 19:59:23 -07:00
Kenneth Hsu
10e127b2a9
Properly encode ampersand in XML content.
2018-03-17 13:56:19 -07:00
Kenneth Hsu
e2aa98fbca
Add option to disable backup when on battery power.
...
This addresses issue #2666 .
2018-03-16 19:32:50 -07:00
Kenneth Skovhede
a980ed93a6
Implemented support for setting low IO priority on Windows, Linux, and MacOS
2018-03-16 23:25:06 +01:00
Kenneth Skovhede
20e2dcafb3
Moved the process control stuff into another class, so it can be disposed easily and contain its own state
2018-03-16 10:33:26 +01:00
Kenneth Skovhede
e124329f1e
Merge branch 'feature/improved-logging'
2018-03-16 08:38:14 +01:00
Kenneth Skovhede
3ec6b88ac8
Added a repeating log-scope that writes out a message, if no activity produced a log message for 10 seconds
2018-03-15 23:30:24 +01: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 and GitHub
96cd4dd725
Merge pull request #3087 from warwickmm/use_nameof_operator
...
Use nameof operator when constructing ArgumentNullException
2018-03-08 11:14:49 +01:00
Kenneth Skovhede and GitHub
0e9eb4a452
Merge pull request #3088 from warwickmm/bugfix/remove_extra_tag
...
Remove superfluous closing tag in XML documentation.
2018-03-08 11:14:29 +01:00
Kenneth Skovhede and GitHub
1675ea2375
Merge pull request #3089 from warwickmm/bugfix/xml_cref
...
Fix code references in XML documentation
2018-03-08 11:14:14 +01:00
Kenneth Hsu
d7b393ed98
Add missing XML parameter documentation.
2018-03-07 19:14:57 -08:00
Kenneth Hsu
46f9fd02b5
Remove XML documentation for unmatched parameters.
2018-03-07 19:13:50 -08:00
Kenneth Hsu
ec7aa3113b
Fix namespace in code references in XML documentation.
2018-03-07 18:34:26 -08:00
Kenneth Hsu
58ab443eb4
Fix generic class code references in XML documentation.
2018-03-07 18:34:26 -08:00
Kenneth Hsu
a7faab50ca
Remove superfluous closing tag in XML documentation.
2018-03-07 18:03:10 -08:00
Kenneth Hsu
1f8b542604
Use nameof operator when constructing ArgumentNullException.
...
This will make rename refactorings easier in the future.
2018-03-07 17:53:08 -08:00
Kenneth Skovhede
305a9fbae0
Changed MacOS to not exclude /private/ but just a selection of the subfolders.
2018-03-05 22:37:46 +01:00
Kenneth Skovhede
b8bbe1e1a0
Added /bin/ to the MacOS excluded folders
2018-03-05 22:33:12 +01:00
Kenneth Skovhede
a2f426e171
Removed ApplicationData from the list of exclusions as there is usually stuff in there that you want backed up.
2018-03-05 22:30:19 +01:00
Kenneth Skovhede
f85b46b814
Added a guard against null-filters
2018-03-05 22:28:49 +01:00
Kenneth Skovhede
022b2087c0
Renamed DefaultFilters to FilterGroups
2018-03-05 22:27:16 +01:00
Kenneth Skovhede
282c70f75f
Implemented default filter groups as suggested in #3030
2018-03-02 15:26:55 +01:00
Kenneth Skovhede and GitHub
e04f0236bb
Merge pull request #3052 from tygill/fix/default-filter-trim
...
Remove some default filters for things that should probably still be backed up
2018-03-02 09:18:14 +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
Kenneth Skovhede
0eecdd449b
Added minor string fixes to the retention policy descriptions
2018-02-26 09:52:17 +01:00
Kenneth Skovhede and GitHub
9ea9176ce0
Merge pull request #3059 from TekkiWuff/feature/retention-policy-unlimited-option
...
Easier syntax for unlimited timeframes and intervals
2018-02-26 09:32:30 +01:00
Kenneth Skovhede
7d18ee6028
Merge branch 'master' of github.com:duplicati/duplicati
2018-02-26 09:01:37 +01:00
Kenneth Skovhede
8efaeefaa5
Merge branch 'feature/disable_default_filters'
2018-02-26 09:01:30 +01:00
Kenneth Skovhede
c9be651690
Removed application of default filters, pending discussion
2018-02-22 17:17:12 +01:00
Kenneth Skovhede
fe7f9cf67a
Added warnings to discourage people from using 7z in the current state
2018-02-22 17:11:07 +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
Daniel Radünz
6da001cbe9
Easier syntax for unlimited timeframes and intervals
...
Also refactored retention policy option to use a list of custom objects instead of a dictionary to reduce confusion when working with the values of the retention policy
2018-02-21 21:30:17 +01:00
Rune Henriksen
0ba28da948
Added if statement to specifically verify that it's a NameResolutionFailure and not just a WebException
2018-02-20 20:34:09 +01:00
Rune Henriksen
ecc586c0f8
added code to attempt to resolve DNS issues on connection failure and implemented DNSName method in WebDav backend handler
2018-02-18 01:30:05 +01:00
Rune Henriksen and GitHub
7a58851224
Added DNSName method to comply with interface
...
Fixed weird linebreak issues and added DNSName method to comply with Ibackend interface
2018-02-18 00:21:48 +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
Tyler Gill
25df361c3e
Remove some default filters for things that should probably still be backed up.
2018-02-13 13:11:16 -07:00
Kenneth Skovhede
5aad640488
Merge branch 'feature/disable-file-scanner'
2018-02-11 21:45:05 +01:00
Kenneth Skovhede
ed76cb7c11
Merge branch 'feature/reduce_usagereporter_backlog'
2018-02-11 21:18:20 +01:00
Kenneth Skovhede
9093603be1
Added support for disabling the file scanner during backups.
...
This fixes #2963
2018-02-11 20:57:38 +01:00
Kenneth Skovhede
a49f63d82c
Removed a number of unwanted translations for debug code
2018-02-11 20:46:44 +01:00
Kenneth Skovhede and GitHub
dc0c2c34ac
Merge pull request #3026 from TekkiWuff/feature/issue-3008-retention-optimizations
...
Feature/issue 3008 retention optimizations
2018-02-11 18:39:08 +01:00