Hi Matthew,
Could you isolate this into a failing unit test?
cheers,
Krzysztof
On 30/09/2011 7:26 AM, Matthew Brubaker wrote:
I am currently using Castle.Widsor v3.0 Beta 1.
The code I am having problems with at the moment is
var _container = new WindsorContainer();
_container.AddFacility<TypedFactoryFacility>();
_container.Register(Component.For<IFileWatcher>().ImplementedBy<FileWatcher>().LifestyleTransient());
_container.Register(Component.For<IFileWatcherFactory>().AsFactory(x
=> x.SelectedWith(new FileWatcherSelector())));
var _fwf = _container.Resolve<IFileWatcherFactory>();
var fw = _fwf.GetFileWatcher(".\\bob.txt", 20);
The signature of IFileWatcherFactory.GetFileWatcher is
IFileWatcher GetFileWatcher(string filePath, int
sleepIntervalInSeconds);
this throws the following exception
Castle.MicroKernel.ComponentNotFoundException : No component
for supporting the service IFileWatcher was found
I have double checked all of the namespaces, usings, etc... and have
been unable to make any progress. This worked correctly as written
using Castle.Windsor v2.5.1 but stopped when I upgraded to v3.0.
Any help would be greatly appreciated. If further information is
needed, please let me know and I will do my best to provide it.
--
You received this message because you are subscribed to the Google Groups "Castle
Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.