Mediator Http Context Scope Multiple Request Client Problem

228 views
Skip to first unread message

Namık Barış İDİL

unread,
Feb 15, 2022, 12:21:39 PM2/15/22
to masstransit-discuss
Hello All,

I've implemented a .NET 6 Web Api with MassTransit Mediator. It is working well. Due to some context usage for database (ef core), I need to use the controller scope in consumers. I implement the solution literally for http context scope (http://masstransit-project.com/usage/mediator.html). It is working until I use multiple request clients in the same request. In that case, I got an exception "System.InvalidOperationException: The ConsumeContext was already set."

Anybody saw this kind of exception before?

Could you help me on this case?

Thanks,

Barish

Jerry Lee Daniel

unread,
Nov 27, 2023, 5:33:58 PM11/27/23
to masstransit-discuss
MT103/202 DIRECT WIRE TRANSFER
PAYPAL TRANSFER
CASHAPP TRANSFER
ZELLE TRANSFER
TRANSFER WISE
WESTERN UNION TRANSFER
BITCOIN FLASHING
BANK ACCOUNT LOADING/FLASHING
IBAN TO IBAN TRANSFER
MONEYGRAM TRANSFER
IPIP/DTC
SLBC PROVIDER
CREDIT CARD TOP UP
DUMPS/ PINS
SEPA TRANSFER
WIRE TRANSFER
BITCOIN TOP UP
GLOBALPAY INC US
SKRILL USA
UNIONPAY RECEIVER

Thanks.


NOTE; ONLY SERIOUS / RELIABLE RECEIVERS CAN CONTACT.

DM ME ON WHATSAPP
+44 7405 896213
Reply all
Reply to author
Forward
0 new messages