You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `BlackSheep-Examples` repository includes an example where `Redis` is
236
-
used to store access tokens and refresh tokens obtained using
237
-
`OpenID Connect`: [example](https://github.com/Neoteroi/BlackSheep-Examples/blob/main/oidc/scopes_redis_aad.py). For more information on `redis-py` and its async
238
-
interface, refer to its [official documentation](https://redis.readthedocs.io/en/stable/examples/asyncio_examples.html).
239
-
240
237
### on_start
241
238
242
-
This event should be used to configure things such as new request handlers,
243
-
and services registered in `app.services`, such as database connection pools,
239
+
This event should be used to configure components such as new request handlers
240
+
and services registered in `app.services`, including database connection pools
244
241
and HTTP client sessions.
245
242
246
243
### after_start
247
244
248
-
This event should be used to configure things that must happen after request
249
-
handlers are normalized. At this point, the application router contains information
250
-
about actual routes handled by the web application, and routes can be inspected.
251
-
For example, the built-in generation of OpenAPI Documentation generates the
252
-
API specification file at this point.
245
+
This event should be used to configure tasks that must occur after request
246
+
handlers are normalized. At this stage, the application router contains
247
+
information about the actual routes handled by the web application, allowing
248
+
routes to be inspected. For example, the built-in OpenAPI documentation
249
+
generation creates the API specification file at this point.
250
+
251
+
/// admonition | Example: inspecting routes.
252
+
type: tip
253
+
254
+
An `after_start` callback that prints all routes registered in the application
0 commit comments