Hangfire client .NET Framework, server .NET 8

Because of different, incompatibles, .NET Frameworks between client and server, I want to serialize a simple command, not a class. This command will then be interpreted in the server.
How can I do this?
Thank you.

1 Like

can you share the code?

I solved this problem (after searching with Google for hours) using
GlobalConfiguration.Configuration.UseActivator(new ServiceProviderActivator(serviceProvider));
but now I have a very big problem with dbcontext, now I open it in a new thread.
Thank you for your interest!