Interface IGlowApplicationMiddlewareBuilder
public interface IGlowApplicationMiddlewareBuilder
Methods
UseMiddleware(AnonymousMiddlewareHandler)
Add an anonymous middleware to the chain
IGlowApplicationBuilder UseMiddleware(AnonymousMiddlewareHandler handler)
Parameters
handlerAnonymousMiddlewareHandler
Returns
UseMiddleware(MiddlewareScope, AnonymousMiddlewareHandler)
IGlowApplicationBuilder UseMiddleware(MiddlewareScope scope, AnonymousMiddlewareHandler handler)
Parameters
scopeMiddlewareScopehandlerAnonymousMiddlewareHandler
Returns
UseMiddleware<T>()
Add a middleware to the chain
IGlowApplicationBuilder UseMiddleware<T>() where T : IMiddleware
Returns
Type Parameters
TThe middleware type
UseMiddleware<T>(MiddlewareScope)
IGlowApplicationBuilder UseMiddleware<T>(MiddlewareScope scope) where T : IMiddleware
Parameters
scopeMiddlewareScope
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
TThe middleware singleton type
TAttrThe middleware activation attribute
UseMiddleware<T, TAttr>(MiddlewareScope)
IGlowApplicationBuilder UseMiddleware<T, TAttr>(MiddlewareScope scope) where T : IMiddleware where TAttr : Attribute
Parameters
scopeMiddlewareScope
Returns
Type Parameters
TTAttr
UseMiddleware<T, TOptions>(MiddlewareScope, TOptions)
IGlowApplicationBuilder UseMiddleware<T, TOptions>(MiddlewareScope scope, TOptions options) where T : IMiddleware where TOptions : class, new()
Parameters
scopeMiddlewareScopeoptionsTOptions
Returns
Type Parameters
TTOptions
UseMiddleware<T, TOptions>(TOptions)
IGlowApplicationBuilder UseMiddleware<T, TOptions>(TOptions options) where T : IMiddleware where TOptions : class, new()
Parameters
optionsTOptions
Returns
Type Parameters
TTOptions
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
scopeMiddlewareScopeoptionsTOptions
Returns
Type Parameters
TTAttrTOptions
UseMiddleware<T, TAttr, TOptions>(TOptions)
IGlowApplicationBuilder UseMiddleware<T, TAttr, TOptions>(TOptions options) where T : IMiddleware where TAttr : Attribute where TOptions : class, new()
Parameters
optionsTOptions
Returns
Type Parameters
TTAttrTOptions