Dashboard: Can not find the target method

@odinserj - I am trying to follow your advice (in fact, I independently came up with the same design - it’s a very elegant way to separate concerns). However, in the Hangfire UI I’m seeing “Can not find the target method”. Right now I have:

  • one MVC app that displays the dashboard only. no writing or processing jobs.
  • one assembly that has a single interface with a single method with a single parameter. Let’s call this IContract.MyMethod(int someInt)
  • one console app that only enqueues jobs. This app has a reference to the assembly containing IContract and uses this statement: BackgroundJob.Enqueue<IContract>( _ => _.MyMethod(10))
  • no job processing yet. no “server”
  • When I look at the dashboard, the job is created but I see "Can not find the target method." I was expecting to see nothing, or maybe some indication that the enqueue was successful. My plan was to have a worker with a real implementation of IContract do the work.

what am I doing wrong?