onAttached

open override fun onAttached(middlewareContext: C)

Called when the middleware is attached to the given context.

This method is triggered when the middleware becomes active within the application lifecycle. It allows for initialization, event listeners setup, or other context-related preparations.

Parameters

middlewareContext

The context to which the middleware is being attached