Open Closed

Masstransit outbox pattern with AbpDbContext #8701


User avatar
0
Teknosol created
  • ABP Framework version: 9.0.2

  • UI Type: Angular /

  • Database System: EF Core (PostgreSQL,)

  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Hi,

I want to use masstransit outbox pattern in my abp project but while my entities are writing to db, masstransit outbox entities are not writing to db. Do you have a method to add objects to AbpDbContext to tracking?

If you want I can send you the project.

This is my program.cs file where I set up masstransit settings and run the db context.

image.png

I add entities to dbcontext like this:

image.png

This is the commanddb context that implements the basedb context

image.png


2 Answer(s)
  • User Avatar
    0
    Teknosol created

    Our problem continues, I ask for your support.

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hello, first of all, sorry for the late reply, this was somehow overlooked.

    We don't have much experience with MassTransit, but if you can send a minimal reproducible example we would like to help as much as we can. Also, as a short information, ABP already supports Inbox/Outbox patterns and we have documentation for this. So I can say that you don't need MassTransit for this purpose. However, if you still want to use MassTransit, we will try to help as much as we can if you can send an application where I can reproduce the problem.

    Note: I guarantee that you will have a much more holistic and easier experience if you use the solution provided by ABP. See more: https://abp.io/docs/latest/studio/monitoring-applications#events

Made with ❤️ on ABP v9.2.0-preview. Updated on January 23, 2025, 12:17