Skip to content

Commit

Permalink
docs: update middlewares
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoRodriguesGithub committed Mar 15, 2024
1 parent 192dab4 commit 99f7191
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions website/docs/guides/middlewares/middlewares.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Every product/consumer has its own Middlewares instances, so the instances are n

Middlewares are instantiated by the configured dependency injection container, so every dependency configured by your container can be delivered in the middleware constructor.

:::info

Use overloads of the `Add<TMiddleware>(MiddlewareLifetime)` method when registering middlewares with your DI container to control middleware instance lifetime.

:::

## Use Cases

Middlewares can perform several jobs. As an example, Middlewares can be used to:
Expand Down

0 comments on commit 99f7191

Please sign in to comment.