From b1cb4de60683bf92f918ac2e48d91c327464ac09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Wed, 14 Oct 2020 16:33:22 +0300 Subject: [PATCH] Revert MyProjectNameDomainModule change --- .../MyProjectNameDomainModule.cs | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/MyProjectNameDomainModule.cs b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/MyProjectNameDomainModule.cs index d0ec8ec127..91b05c877d 100644 --- a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/MyProjectNameDomainModule.cs +++ b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/MyProjectNameDomainModule.cs @@ -1,12 +1,8 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using MyCompanyName.MyProjectName.MultiTenancy; -using System; -using System.IO; -using System.Threading.Tasks; using Volo.Abp.AuditLogging; using Volo.Abp.BackgroundJobs; -using Volo.Abp.Content; using Volo.Abp.Emailing; using Volo.Abp.FeatureManagement; using Volo.Abp.Identity; @@ -46,21 +42,5 @@ namespace MyCompanyName.MyProjectName context.Services.Replace(ServiceDescriptor.Singleton()); #endif } - - public async Task Upload(Guid id, IRemoteStreamContent streamContent) - { - using (var fs = new FileStream("C:\\Temp\\" + id + ".blob", FileMode.Create)) - { - await streamContent.GetStream().CopyToAsync(fs); - await fs.FlushAsync(); - } - } - - public Task Download(Guid id) - { - var fs = new FileStream(id + ".blob", FileMode.OpenOrCreate); - return Task.FromResult((IRemoteStreamContent)new RemoteStreamContent(fs) { ContentType = "application/octet-stream" }); - } - } }