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
TMVCActiveRecordMiddleware will add database connection in Middleware.OnBeforeRouting .
and remove connection in Middleware.OnAfterRouting
But in function TMVCEngine.ExecuteAction ExecuteBeforeControllerActionMiddleware Maybe handle the request and then call the "Exit(True)", this will ignore the Middleware.OnAfterRouting.
So, when the next request arrived. The add database connection(in Middleware.OnBeforeRouting) behavior will execute again and lead exception with duplicate message .
The text was updated successfully, but these errors were encountered:
TMVCActiveRecordMiddleware will add database connection in Middleware.OnBeforeRouting .
and remove connection in Middleware.OnAfterRouting
But in function TMVCEngine.ExecuteAction
ExecuteBeforeControllerActionMiddleware Maybe handle the request and then call the "Exit(True)", this will ignore the Middleware.OnAfterRouting.
So, when the next request arrived. The add database connection(in Middleware.OnBeforeRouting) behavior will execute again and lead exception with duplicate message .
The text was updated successfully, but these errors were encountered: