I have a WebJob project - call it project A. I'd like to define some WebJob functions in another assembly - call it assembly B.
WebJobs doesn't find any of the job functions that I've set up in assembly B. I can move the method from assembly B into project A, and WebJobs finds it just fine - so it seems that the method is correct.
Here's an example of a job method that works in project A but not in assembly B:
public static void ProcessQueueMessage([QueueTrigger("logqueue")] string logMessage, TextWriter logger)
{
logger.WriteLine(logMessage);
}
The class in assembly B is public. Assembly B has a reference to the WebJobs SDK, and project A has a reference to assembly B. I've verified this by ensuring that assembly B is in the domain assemblies for A.
So, why can't the WebJob host find the method in assembly B? Do I need to decorate the assembly with an attribute? Or do a custom type locator?
Any examples of anyone getting something like this to work?