diff --git a/Duplicati/Library/Backend/WEBDAV/Duplicati.Library.Backend.WEBDAV.csproj b/Duplicati/Library/Backend/WEBDAV/Duplicati.Library.Backend.WEBDAV.csproj index f704c2b22..8858c48b5 100644 --- a/Duplicati/Library/Backend/WEBDAV/Duplicati.Library.Backend.WEBDAV.csproj +++ b/Duplicati/Library/Backend/WEBDAV/Duplicati.Library.Backend.WEBDAV.csproj @@ -5,6 +5,8 @@ Library Duplicati.Library.Backend Copyright © 2025 Team Duplicati, MIT license + enable + enable diff --git a/Duplicati/Library/Backend/WEBDAV/WEBDAV.cs b/Duplicati/Library/Backend/WEBDAV/WEBDAV.cs index 627a01890..a384fa1a0 100644 --- a/Duplicati/Library/Backend/WEBDAV/WEBDAV.cs +++ b/Duplicati/Library/Backend/WEBDAV/WEBDAV.cs @@ -19,20 +19,12 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -#nullable enable - using Duplicati.Library.Common.IO; using Duplicati.Library.Interface; using Duplicati.Library.Utility; using Duplicati.Library.Utility.Options; -using System; -using System.Collections.Generic; -using System.IO; using System.Net; -using System.Net.Http; using System.Runtime.CompilerServices; -using System.Threading; -using System.Threading.Tasks; namespace Duplicati.Library.Backend { @@ -363,20 +355,14 @@ namespace Duplicati.Library.Backend } /// - public IList SupportedCommands - { - get - { - return - [ - .. AuthOptionsHelper.GetOptions(), - new CommandLineArgument("integrated-authentication", CommandLineArgument.ArgumentType.Boolean, Strings.WEBDAV.DescriptionIntegratedAuthenticationShort, Strings.WEBDAV.DescriptionIntegratedAuthenticationLong), - new CommandLineArgument("force-digest-authentication", CommandLineArgument.ArgumentType.Boolean, Strings.WEBDAV.DescriptionForceDigestShort, Strings.WEBDAV.DescriptionForceDigestLong), - .. SslOptionsHelper.GetOptions(), - .. TimeoutOptionsHelper.GetOptions() - ]; - } - } + public IList SupportedCommands => + [ + .. AuthOptionsHelper.GetOptions(), + new CommandLineArgument("integrated-authentication", CommandLineArgument.ArgumentType.Boolean, Strings.WEBDAV.DescriptionIntegratedAuthenticationShort, Strings.WEBDAV.DescriptionIntegratedAuthenticationLong), + new CommandLineArgument("force-digest-authentication", CommandLineArgument.ArgumentType.Boolean, Strings.WEBDAV.DescriptionForceDigestShort, Strings.WEBDAV.DescriptionForceDigestLong), + .. SslOptionsHelper.GetOptions(), + .. TimeoutOptionsHelper.GetOptions() + ]; /// public string Description => Strings.WEBDAV.Description;