Skip to content

EsmAccessMiddleware class

namespace: Serenity.Web.Middleware   assembly: Serenity.Net.Web

Middleware that serves the files under esm folders only to users who may load them, see EsmAccessControlOptions. It must be placed before the static files middleware. Denied files get a 404 response, so that it does not tell whether the file exists.

public class EsmAccessMiddleware
parameter description
next The next middleware
policy The access policy

Public Members

name description
EsmAccessMiddleware(…) Middleware that serves the files under esm folders only to users who may load them, see EsmAccessControlOptions. It must be placed before the static files middleware. Denied files get a 404 response, so that it does not tell whether the file exists.
InvokeAsync(…) Invokes the middleware.

See Also