Greetings,
I have a background job that when it executes, I wish to do a number of database calls. It's important that they are wrapped in a single transaction (UnitOfWork).
Question Will using the Attribute "UnitOfWork" on the said AsyncBackgroundJob be the best way?
[UnitOfWork(isTransactional: true)]
public override async Task ExecuteAsync(SaveTransactionFileUploadDto args)
Thanks you for your time,
Regards John
Thank you once again!
I read "Subscribing to the auto events is same as subscribing a regular distributed event" - so I'm guessing if there are no distributed events published for the File Management Module then as alternative i could somehow hook into the events at the EF level.
Just posting my thoughts but would still appreciate the experts opinion! :-)
We are using 5.22 Blazor-UI WASM multi-tenancy EF Core.
I would to be able to subscribe to the event that occurs when any Tenant uploads a file using the file Management module because (we need to process some actions based upon the file content).
In the doco it has: "This module doesn't define any additional distributed event. See the standard distributed events."
I would be grateful if i could be provided some guidance or short code sample as I don't understand "standard distributed events or how to hook into them.
Thank you! John
that's great - thanks for the fast response!
The global admin of our site needs to add new records in a table for all our Tenants.. Its kind of a bulk process we have.
Can the global Admin make inserts/updates "in the context" of a Tenant?
Thank you!
John
I wish that was true, but i tested it a few times with fresh templated commercial projects and in a private window.