Class CompressFilterAttribute
A filter to gzip the result of an action.
Inheritance
System.Object
CompressFilterAttribute
Namespace: EPiServer.Shell.Web.Mvc
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public sealed class CompressFilterAttribute : ActionFilterAttribute
Constructors
CompressFilterAttribute()
Declaration
public CompressFilterAttribute()
Methods
OnResultExecuted(ResultExecutedContext)
Called when the action is executing. Will filter make sure that the result is zipped.
Declaration
public override void OnResultExecuted(ResultExecutedContext filterContext)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.ResultExecutedContext | filterContext | The context for the action. |