Browse Source
Merge pull request #16958 from abpframework/salihozkara/imaging
Imaging contributor order set in register order
pull/16985/head
Halil İbrahim Kalkan
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
2 deletions
-
framework/src/Volo.Abp.Imaging.Abstractions/Volo/Abp/Imaging/ImageCompressor.cs
-
framework/src/Volo.Abp.Imaging.Abstractions/Volo/Abp/Imaging/ImageResizer.cs
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.IO; |
|
|
|
using System.Linq; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using JetBrains.Annotations; |
|
|
|
@ -16,7 +17,7 @@ public class ImageCompressor : IImageCompressor, ITransientDependency |
|
|
|
|
|
|
|
public ImageCompressor(IEnumerable<IImageCompressorContributor> imageCompressorContributors, ICancellationTokenProvider cancellationTokenProvider) |
|
|
|
{ |
|
|
|
ImageCompressorContributors = imageCompressorContributors; |
|
|
|
ImageCompressorContributors = imageCompressorContributors.Reverse(); |
|
|
|
CancellationTokenProvider = cancellationTokenProvider; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.IO; |
|
|
|
using System.Linq; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using JetBrains.Annotations; |
|
|
|
@ -22,7 +23,7 @@ public class ImageResizer : IImageResizer, ITransientDependency |
|
|
|
IOptions<ImageResizeOptions> imageResizeOptions, |
|
|
|
ICancellationTokenProvider cancellationTokenProvider) |
|
|
|
{ |
|
|
|
ImageResizerContributors = imageResizerContributors; |
|
|
|
ImageResizerContributors = imageResizerContributors.Reverse(); |
|
|
|
CancellationTokenProvider = cancellationTokenProvider; |
|
|
|
ImageResizeOptions = imageResizeOptions.Value; |
|
|
|
} |
|
|
|
|