From 790555218bdedefa05ebbb79e19b69f067998962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pereira=20Rodrigues?= Date: Thu, 14 Mar 2024 10:49:41 +0000 Subject: [PATCH] docs: update middlewares --- website/docs/guides/middlewares/middlewares.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/docs/guides/middlewares/middlewares.md b/website/docs/guides/middlewares/middlewares.md index 1008b25bf..a571c84b0 100644 --- a/website/docs/guides/middlewares/middlewares.md +++ b/website/docs/guides/middlewares/middlewares.md @@ -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(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: