Configures the given middleware as the last handler in the pipeline.
This is a public method.
public object Use(IMiddleware middleware)
Returns the ID of the configured middleware.
null
.The middleware pipeline is called in the same order they are configured, configuring a middleware handler multiple times will not reorder it. The respective instance will be called multiple times.