public NextCloudClient(NextCloudConfig nextCloudConfig, ILogger <NextCloudClient> logger)
        {
            _webDavClientParams = new WebDavClientParams
            {
                BaseAddress = new Uri($"http://{nextCloudConfig.Host}:{nextCloudConfig.Port}/remote.php/dav/files/{nextCloudConfig.UserName}/"),
                Credentials = new NetworkCredential(nextCloudConfig.UserName, nextCloudConfig.Password)
            };

            _logger = logger;
        }
        public static IServiceCollection AddNextCloud(this IServiceCollection services, IConfiguration configuration)
        {
            var nextCloudConfig = new NextCloudConfig();

            configuration.GetSection("NextCloudConfig").Bind(nextCloudConfig);

            services.AddSingleton(nextCloudConfig);
            services.AddScoped <INextCloudClient, NextCloudClient>();

            return(services);
        }