Hi Ayende,

In the latest trunk, "WindsorServiceHost" has disappeared which is why
I was having so much trouble trying to correlate with examples such as
on your website and of other bloggers out there?

In the end I got it working, although not entirely sure if this is the
"best" way or not. In my startup server code I:
(1) add the WcfFacility to the container
(2) register the service classes in the container
(3) instantiate a DefaultServiceHostFactory
(4) iterate through all my services calling the
DefaultServiceHostFactory.CreateServiceHost method

I found that when I just created DefaultServiceHost instances directly
without a factory that services were not wired into the container and
it was invoking default constructors on the service class etc.

Feel free to yell if the above approach is wrong (note we
intentionally have no xml config files for either Castle or Wcf) - it
seems to work pretty well though.

For the Wcf client side we are using the "recover from faults"
approach from 
http://javicrespotech.blogspot.com/2008/09/singleton-wcf-proxy.html

Again if we should instead be configuring a WcfFacility on the client
side for some benefit please feel free to slap me over the head with a
fish.

Regards,
Grant.

On Nov 25, 5:42 pm, "Ayende Rahien" <[EMAIL PROTECTED]> wrote:
> You use the same general idea, by using WindsorServiceHost directly.
> You can look at the unit tests for that.
>
>
>
> On Tue, Nov 25, 2008 at 12:09 PM, Grant <[EMAIL PROTECTED]> wrote:
>
> > Does anyone have an example of this (or is it even possible with the
> > Castle Windsor Wcf facility)? The few examples I have stumbled on seem
> > to all be IIS based?
>
> > Many thanks.- Hide quoted text -
>
> - Show quoted text -

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