I’m trying to set up the project where I want to configure the hangfire server in console application and the client in .net core web-api application.
How does the console application know about the DLL in which the job method is configured?
Is the DLL information included in serialization? how does it get the web application DLL?
I can’ find the answer anywhere.
The library would have to be known (referenced) by both the client and server. Alternatively, you can define interfaces for use in the client and use dependency injection in the server to map the interfaces to their respective implementations.
The class name and assembly of what you are trying to invoke is stored as part of the job.