Protected
namesReadonly
stackThe height of the stack.
Add a middleware to the stack.
A relative or absolute middleware to add to the stack.
The reference to this instance.
Adds middleware to the stack according to its step and priority.
An absolute middleware to add to the stack.
A reference to this instance.
Adds middleware to the stack relative to the anchoring middleware. If the anchoring middleware does not exist, the middleware will be ignored during the sorting process.
A relative middleware to add to the stack.
A reference to this instance.
Protected
cacheAdds the middleware name to the local cache of middleware for quicker middleware validation.
A middleware name to cache to check for name uniqueness on the stack.
An option to make this method go "BOOM!"
An indicator that the name was successfully added to stack or that it already exists.
Creates the middleware and adds it to the stack according to its step and priority.
An absolute middleware function to add to the stack.
Optional
options: AbsoluteMiddlewareOptionsAdditional information to sort the absolute middleware in the correct position.
A reference to this instance.
Creates the middleware and adds it to the stack relative to the anchoring middleware.
A relative middleware function to add to the stack.
Additional information to sort the relative middleware in the correct position.
A reference to this instance.
Verifies the existence of a particular middleware in the stack.
A middleware name.
An indicator that the middleware has or has not been added to the stack.
Merge creates a new MiddlewareStack from the entries from this middleware stack and those given.
A middleware stack to merge into the current stack.
A new middleware stack with the current and supplied middleware sorted in it.
RemoveByRef deletes the middleware function(s) that have the same reference as the given function.
The middleware function to remove by reference.
The reference to this instance.
Resolve enchains the middleware by binding the next and context parameters and exposing a handler to begin the call chain.
The last middleware to be called in the chain.
A context for sharing data between middleware calls such as a common logger.
The first middleware to be called on the middleware stack.
Private
sortSorts the middleware according to their step, priority, and relation and returns a new array of middleware.
A list of middleware sorted according to their step, priority, or relation.
Gives the number of entries of the stack.