I have an IRunningTaskFactory that is registered in Windsor AsFactory () using the Factory Typed Engine. The interface has a single method that looks like this:
RunningTask Create(ITask task);
If RunningTask is registered as temporary in Windsor, it has a constructor:
public RunningTask(ITask task, ITaskConfigurationFactory taskConfigurationFactory)
where ITaskConfigurationFactory is also registered in Windsor.
The problem I am facing is that when I call the Create method and pass in ITask, I get the following error:
Castle.MicroKernel.Resolvers.DependencyResolverException: Missing dependency. The Husky.nHuskyTasker.Core.Tasks.RunningTask component has a dependency on Husky.nHuskyTasker.Core.Tasks.ITask that cannot be resolved. Make sure the dependency is correctly registered in the container as a service, or presented as an inline argument
From what I read in the documentation, this should work.
Thoughts?
Shane courtrille
source share