I had the same problem and I noticed that we cannot initialize multiple registries.
But, instead, we can initialize one registry that starts multiple schedules.
Following is an example of what I did.
protected void Application_Start()
{
TaskManager.TaskFactory = new StructureMapTaskFactory();
TaskManager.Initialize(new RegistryMultipleTasks());
}
public class RegistryMultipleTasks : Registry
{
public RegistryMultipleTasks()
{
FeedRegistry.AddSchedule(this);
SitemapRegistry.AddSchedule(this);
}
}
public class FeedRegistry
{
public static void AddSchedule(Registry registry = null)
{
registry.Schedule(() => FeedTask()).ToRunNow().AndEvery(15).Minutes();
}
private static void FeedTask()
{
// TODO
}
}
This worked for me.
PS: I know this is an old thread, but I am writing this with the purpose of helping anyone in the same problem.