I'm currently registering all my Fetching strategies like this:

foreach (var assembly in assemblies){   container.Register(AllTypes

           .FromAssemblyNamed(Path.GetFileNameWithoutExtension(assembly))
           .BasedOn(typeof(IFetchingStrategy<>)).WithService.Base()
           .BasedOn(typeof(IFetchingStrategy<,>)).WithService.Base()
           .Configure(registration => registration.LifeStyle.Transient));
}



      

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to castle-project-us...@googlegroups.com.
To unsubscribe from this group, send email to 
castle-project-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to