Interface IGlowApplicationMiddlewareBuilder
public interface IGlowApplicationMiddlewareBuilder
Methods
UseMiddleware(AnonymousMiddlewareHandler)
Add an anonymous middleware to the chain
IGlowApplicationBuilder UseMiddleware(AnonymousMiddlewareHandler handler)
Parameters
handler
AnonymousMiddlewareHandler
Returns
UseMiddleware(MiddlewareScope, AnonymousMiddlewareHandler)
IGlowApplicationBuilder UseMiddleware(MiddlewareScope scope, AnonymousMiddlewareHandler handler)
Parameters
scope
MiddlewareScopehandler
AnonymousMiddlewareHandler
Returns
UseMiddleware<T>()
Add a middleware to the chain
IGlowApplicationBuilder UseMiddleware<T>() where T : IMiddleware
Returns
Type Parameters
T
The middleware type
UseMiddleware<T>(MiddlewareScope)
IGlowApplicationBuilder UseMiddleware<T>(MiddlewareScope scope) where T : IMiddleware
Parameters
scope
MiddlewareScope
Returns
Type Parameters
T
UseMiddleware<T, TAttr>()
Add a middleware to the chain for methods/classes marked with the specified TAttr Attribute
IGlowApplicationBuilder UseMiddleware<T, TAttr>() where T : IMiddleware where TAttr : Attribute
Returns
Type Parameters
T
The middleware singleton type
TAttr
The middleware activation attribute
UseMiddleware<T, TAttr>(MiddlewareScope)
IGlowApplicationBuilder UseMiddleware<T, TAttr>(MiddlewareScope scope) where T : IMiddleware where TAttr : Attribute
Parameters
scope
MiddlewareScope
Returns
Type Parameters
T
TAttr
UseMiddleware<T, TOptions>(MiddlewareScope, TOptions)
IGlowApplicationBuilder UseMiddleware<T, TOptions>(MiddlewareScope scope, TOptions options) where T : IMiddleware where TOptions : class, new()
Parameters
scope
MiddlewareScopeoptions
TOptions
Returns
Type Parameters
T
TOptions
UseMiddleware<T, TOptions>(TOptions)
IGlowApplicationBuilder UseMiddleware<T, TOptions>(TOptions options) where T : IMiddleware where TOptions : class, new()
Parameters
options
TOptions
Returns
Type Parameters
T
TOptions
UseMiddleware<T, TAttr, TOptions>(MiddlewareScope, TOptions)
IGlowApplicationBuilder UseMiddleware<T, TAttr, TOptions>(MiddlewareScope scope, TOptions options) where T : IMiddleware where TAttr : Attribute where TOptions : class, new()
Parameters
scope
MiddlewareScopeoptions
TOptions
Returns
Type Parameters
T
TAttr
TOptions
UseMiddleware<T, TAttr, TOptions>(TOptions)
IGlowApplicationBuilder UseMiddleware<T, TAttr, TOptions>(TOptions options) where T : IMiddleware where TAttr : Attribute where TOptions : class, new()
Parameters
options
TOptions
Returns
Type Parameters
T
TAttr
TOptions