Show / Hide Table of Contents

Class CompressImageAttribute

Inheritance
object
Attribute
ActionFilterAttribute
CompressImageAttribute
Implements
IActionFilter
IAsyncActionFilter
IResultFilter
IAsyncResultFilter
IOrderedFilter
IFilterMetadata
Inherited Members
ActionFilterAttribute.OnActionExecuting(ActionExecutingContext)
ActionFilterAttribute.OnActionExecuted(ActionExecutedContext)
ActionFilterAttribute.OnResultExecuting(ResultExecutingContext)
ActionFilterAttribute.OnResultExecuted(ResultExecutedContext)
ActionFilterAttribute.OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate)
ActionFilterAttribute.Order
Attribute.GetCustomAttributes(MemberInfo, Type)
Attribute.GetCustomAttributes(MemberInfo, Type, bool)
Attribute.GetCustomAttributes(MemberInfo)
Attribute.GetCustomAttributes(MemberInfo, bool)
Attribute.IsDefined(MemberInfo, Type)
Attribute.IsDefined(MemberInfo, Type, bool)
Attribute.GetCustomAttribute(MemberInfo, Type)
Attribute.GetCustomAttribute(MemberInfo, Type, bool)
Attribute.GetCustomAttributes(ParameterInfo)
Attribute.GetCustomAttributes(ParameterInfo, Type)
Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
Attribute.GetCustomAttributes(ParameterInfo, bool)
Attribute.IsDefined(ParameterInfo, Type)
Attribute.IsDefined(ParameterInfo, Type, bool)
Attribute.GetCustomAttribute(ParameterInfo, Type)
Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
Attribute.GetCustomAttributes(Module, Type)
Attribute.GetCustomAttributes(Module)
Attribute.GetCustomAttributes(Module, bool)
Attribute.GetCustomAttributes(Module, Type, bool)
Attribute.IsDefined(Module, Type)
Attribute.IsDefined(Module, Type, bool)
Attribute.GetCustomAttribute(Module, Type)
Attribute.GetCustomAttribute(Module, Type, bool)
Attribute.GetCustomAttributes(Assembly, Type)
Attribute.GetCustomAttributes(Assembly, Type, bool)
Attribute.GetCustomAttributes(Assembly)
Attribute.GetCustomAttributes(Assembly, bool)
Attribute.IsDefined(Assembly, Type)
Attribute.IsDefined(Assembly, Type, bool)
Attribute.GetCustomAttribute(Assembly, Type)
Attribute.GetCustomAttribute(Assembly, Type, bool)
Attribute.Equals(object)
Attribute.GetHashCode()
Attribute.Match(object)
Attribute.IsDefaultAttribute()
Attribute.TypeId
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: Volo.Abp.Imaging
Assembly: Volo.Abp.Imaging.AspNetCore.dll
Syntax
public class CompressImageAttribute : ActionFilterAttribute, IActionFilter, IAsyncActionFilter, IResultFilter, IAsyncResultFilter, IOrderedFilter, IFilterMetadata

Constructors

CompressImageAttribute(params string[])

Declaration
public CompressImageAttribute(params string[] parameters)
Parameters
Type Name Description
string[] parameters

Properties

Parameters

Declaration
public string[] Parameters { get; }
Property Value
Type Description
string[]

Methods

CompressImageAsync(IFormFile, IImageCompressor)

Declaration
protected virtual Task<IFormFile> CompressImageAsync(IFormFile file, IImageCompressor imageCompressor)
Parameters
Type Name Description
IFormFile file
IImageCompressor imageCompressor
Returns
Type Description
Task<IFormFile>

CompressImageAsync(byte[], IImageCompressor)

Declaration
protected virtual Task<byte[]> CompressImageAsync(byte[] bytes, IImageCompressor imageCompressor)
Parameters
Type Name Description
byte[] bytes
IImageCompressor imageCompressor
Returns
Type Description
Task<byte[]>

CompressImageAsync(Stream, IImageCompressor)

Declaration
protected virtual Task<Stream> CompressImageAsync(Stream stream, IImageCompressor imageCompressor)
Parameters
Type Name Description
Stream stream
IImageCompressor imageCompressor
Returns
Type Description
Task<Stream>

CompressImageAsync(IRemoteStreamContent, IImageCompressor)

Declaration
protected virtual Task<IRemoteStreamContent> CompressImageAsync(IRemoteStreamContent remoteStreamContent, IImageCompressor imageCompressor)
Parameters
Type Name Description
IRemoteStreamContent remoteStreamContent
IImageCompressor imageCompressor
Returns
Type Description
Task<IRemoteStreamContent>

OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)

Declaration
public override Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
Parameters
Type Name Description
ActionExecutingContext context
ActionExecutionDelegate next
Returns
Type Description
Task
Overrides
ActionFilterAttribute.OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)

Implements

IActionFilter
IAsyncActionFilter
IResultFilter
IAsyncResultFilter
IOrderedFilter
IFilterMetadata

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform