From 979538ecaa1504af20134bb5d545897bbed23ce8 Mon Sep 17 00:00:00 2001 From: maliming Date: Mon, 19 Jul 2021 21:50:45 +0800 Subject: [PATCH] Only keep one ctor. --- .../Volo.Abp.Core/Volo/Abp/Content/RemoteStreamContent.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/framework/src/Volo.Abp.Core/Volo/Abp/Content/RemoteStreamContent.cs b/framework/src/Volo.Abp.Core/Volo/Abp/Content/RemoteStreamContent.cs index faab2df9fc..4b301a3ad0 100644 --- a/framework/src/Volo.Abp.Core/Volo/Abp/Content/RemoteStreamContent.cs +++ b/framework/src/Volo.Abp.Core/Volo/Abp/Content/RemoteStreamContent.cs @@ -14,21 +14,17 @@ namespace Volo.Abp.Content public virtual long? ContentLength { get; } - public RemoteStreamContent(Stream stream, bool disposeStream = true) + public RemoteStreamContent(Stream stream, string fileName = null, string contentType = null, long? readOnlyLength = null, bool disposeStream = true) { _stream = stream; - _disposeStream = disposeStream; - } - public RemoteStreamContent(Stream stream, string fileName = null, string contentType = null, long? readOnlyLength = null, bool disposeStream = true) - : this(stream, disposeStream) - { FileName = fileName; if (contentType != null) { ContentType = contentType; } ContentLength = readOnlyLength ?? (_stream.CanSeek ? _stream.Length - _stream.Position : null); + _disposeStream = disposeStream; } public virtual Stream GetStream()