Does the Castle WCF facility not do what you are after?

On Fri, Jul 3, 2009 at 8:38 AM, Adam Langley <[email protected]> wrote:

>
> Hi,
>
> I want to extend Windsor so that I may register services, but not
> specify the implementation type, and have Windsor return a WCF channel
> as the implementation.
> My vision is to have something like this:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
>  <configSections>
>    <section name="castle"
> type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler,
> Castle.Windsor" />
>  </configSections>
>  <castle xmlns="windsor.xsd">
>    <facilities>
>      <facility id="wcffacility"
>          type="DependencyResolution.WcfAdvertiseAndDiscoveryFacility,
> DependencyResolution" />
>    </facilities>
>    <components>
>      <component id="ICustomerService"
> service="ServiceContracts.ICustomerService, ServiceContracts"
> lifestyle="singleton" endpoint="discoveryClient" />
>    </components>
>  </castle>
>  <system.serviceModel>
>    <client>
>      <endpoint name="discoveryClient" kind="udpDiscoveryEndpoint"/>
>    </client>
>  </system.serviceModel>
> </configuration>
>
> The idea is that, for components which have an "endpoint" attribute,
> then the custom facility will use the endpoint to create a channel based
> on the interface contract.
> However, this means that there is no "Type" attribute specified for the
> component. I have noticed that if the "Type" attribute is not specified,
> then the 'Kernel.ComponentModelCreated' event is never fired, and I
> cannot handle anything.
> This makes me think that there is another extension mechanism within
> Windsor that I need to hook into.
> Can anybody tell me how to achieve what I want here?
>
> Thanks
>
> Adam Langley
>
>
> >
>


-- 
Jono

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