I forgot, I posted a complete example myself a while back:
http://callumhibbert.blogspot.com/2008/02/wcf-services-and-dependency-injection.html

Callum


On Wed, May 6, 2009 at 10:41 AM, Andyk <[email protected]> wrote:

>
> Ok I think Im getting somewhere. I think I need to use the
> IContainerAccessor in my global.cs file, and instantiate the container
> in the app_start.
> Then when there's an incoming request, windsor will instantiate the
> webservice class.
> Am I getting warmer?
>
> On May 6, 9:54 am, AndyKnight <[email protected]> wrote:
> > Hi all,
> > Im trying to find a way of using windsor with my webservice and
> > wondered if anyone can help me or point me in the right direction?
> > My problem is, how exactly does a webservice class get instantiated
> > when there's an incoming request, and how do I override that to use
> > the class from the windsor container instead?
> >
> > Right now, my web service contains lots of references to my static
> > windsor container, like: Ioc.Resolve<IAccountService>, which makes
> > unit testing the webservice class very hard.
> >
> > kind regards
> >
> > Andy
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to