Schedule using JSON


#1

Hi all,

I need to schedule methods from a class that is not instantiated. I know the method signature and the parameter types and values. I know in database will end up as string any way. So I try to avoid creating an instance of my class just for scheduling. A new instance will be created when the job is running, via reflection (activator-invoke).

This is how I would expect to be able to send to the scheduler. This is how also the content of Hangfire Job table on column invocationtable:

{“Type”:“MyActionHandler, Playground, Version=2.0.4.0, Culture=neutral, PublicKeyToken=null”,“Method”:“DestroyRavelloApplication”,“ParameterTypes”:"[]",“Arguments”:"[]"}

This topic is not related to the following:

Any way to create jobs declaratively?

Regards,
Florin