View Single Post
  #4 (permalink)  
Old January 27th, 2011, 09:13 AM
elbandit's Avatar
elbandit elbandit is offline
Wrox Author
Points: 599, Level: 8
Points: 599, Level: 8 Points: 599, Level: 8 Points: 599, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2007
Location: Southsea, Portsmouth, Hampshire, United Kingdom.
Posts: 107
Thanks: 10
Thanked 17 Times in 15 Posts
Default

I think traditionally a service locater used with a service that has a constructor would look like:

var movie_service = ServiceLocator.Locate<IMovieService>("with_IMDB_fi nder");

or

var movie_service = ServiceLocator.Locate<IMovieService>(FinderType.Am azon);

i.e.you are asking the service for what finder you want it to use. Its a very subtle difference, and may have been blurred over time, plus I think people use the term interchangeably.

But yes auto wiring is cool !

Cheers
Scott
Reply With Quote