diff --git a/src/IdentityServer/Duende/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs b/src/IdentityServer/Duende/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs deleted file mode 100644 index 69eb0bfe4..000000000 --- a/src/IdentityServer/Duende/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Threading; -using System.Threading.Tasks; - -namespace ClassifiedAds.Domain.Infrastructure.Networking -{ - public interface IFileDownloader - { - void DownloadFile(string url, string path); - - Task DownloadFileAsync(string url, string path, CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/IdentityServer/IdentityServer4/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs b/src/IdentityServer/IdentityServer4/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs deleted file mode 100644 index 69eb0bfe4..000000000 --- a/src/IdentityServer/IdentityServer4/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Threading; -using System.Threading.Tasks; - -namespace ClassifiedAds.Domain.Infrastructure.Networking -{ - public interface IFileDownloader - { - void DownloadFile(string url, string path); - - Task DownloadFileAsync(string url, string path, CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/IdentityServer/OpenIddict/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs b/src/IdentityServer/OpenIddict/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs deleted file mode 100644 index 9112269fb..000000000 --- a/src/IdentityServer/OpenIddict/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Threading; -using System.Threading.Tasks; - -namespace ClassifiedAds.Domain.Infrastructure.Networking; - -public interface IFileDownloader -{ - void DownloadFile(string url, string path); - - Task DownloadFileAsync(string url, string path, CancellationToken cancellationToken = default); -} \ No newline at end of file diff --git a/src/Microservices/Common/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs b/src/Microservices/Common/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs deleted file mode 100644 index 620d161de..000000000 --- a/src/Microservices/Common/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Threading; -using System.Threading.Tasks; - -namespace ClassifiedAds.Domain.Infrastructure.Networking; - -public interface IFileDownloader -{ - void DownloadFile(string url, string path); - - Task DownloadFileAsync(string url, string path, CancellationToken cancellationToken = default); -} diff --git a/src/ModularMonolith/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs b/src/ModularMonolith/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs deleted file mode 100644 index 620d161de..000000000 --- a/src/ModularMonolith/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Threading; -using System.Threading.Tasks; - -namespace ClassifiedAds.Domain.Infrastructure.Networking; - -public interface IFileDownloader -{ - void DownloadFile(string url, string path); - - Task DownloadFileAsync(string url, string path, CancellationToken cancellationToken = default); -} diff --git a/src/Monolith/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs b/src/Monolith/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs deleted file mode 100644 index 9112269fb..000000000 --- a/src/Monolith/ClassifiedAds.Domain/Infrastructure/Networking/IFileDownloader.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Threading; -using System.Threading.Tasks; - -namespace ClassifiedAds.Domain.Infrastructure.Networking; - -public interface IFileDownloader -{ - void DownloadFile(string url, string path); - - Task DownloadFileAsync(string url, string path, CancellationToken cancellationToken = default); -} \ No newline at end of file diff --git a/src/Monolith/ClassifiedAds.Infrastructure/Networking/FileDownloader.cs b/src/Monolith/ClassifiedAds.Infrastructure/Networking/FileDownloader.cs deleted file mode 100644 index 0578e0260..000000000 --- a/src/Monolith/ClassifiedAds.Infrastructure/Networking/FileDownloader.cs +++ /dev/null @@ -1,21 +0,0 @@ -using ClassifiedAds.Domain.Infrastructure.Networking; -using System.Net; -using System.Threading; -using System.Threading.Tasks; - -namespace ClassifiedAds.Infrastructure.Networking; - -public class FileDownloader : IFileDownloader -{ - public void DownloadFile(string url, string path) - { - var client = new WebClient(); - client.DownloadFile(url, path); - } - - public async Task DownloadFileAsync(string url, string path, CancellationToken cancellationToken = default) - { - var client = new WebClient(); - await client.DownloadFileTaskAsync(url, path); - } -}