Open Closed

How to obtain IDbContextProvider object in a Process #7629


0
timmackey created

I want to fork a long-running db intensive process to a new Process. The Process ...

  • requires no user interface
  • requires acess to a small subset of tables in my db
  • must provide status and progress updates to the Host web app via SignalR or other similar mechanism (vs polling) to the user that launched the Process.

Can you direct me to some documentation and sample code on how to accomplish this?

Thank you.


1 Answer(s)
  • 0
    maliming created

    I think your idea is not a best practice. For long time background jobs you can consider using Hangfire or other background jobs components. Instead of creating a separate process yourself,