--
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-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
This doesn't make any sense.
sent from my HTC Desire
On 29/08/2010 9:16 PM, "barroei" <bar.ro...@gmail.com> wrote:
i cant use different names.
its the same service.
i want it to have multiple interfaces.
meaning multiple servicecontracts on the same service.
i can easily do it if implement all interfaces by the same class.
but i want it to be generic and have an implementation class per each
interface
On Aug 29, 10:05 am, Ayende Rahien <aye...@ayende.com> wrote:
> You need different names
>
>
>
> On Sun, Aug 29, 2010 at 9:49 AM, barroei <bar.roei.w...@gmail.com> wrote:
> > hello.
>
> > i am tr...
> > castle-project-u...@googlegroups.com<castle-project-users%2Bunsubs...@googlegroups.com>
> > .
> >http://groups.google.com/group/castle-project-users?hl=en.- Hide quoted text -
> > For more options, visit this group at
>
> - Show quoted text -
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" gro...
What are you trying to do? Container aside.
so you want an umbrella object that would implement multiple interfaces
and contain multiple other obects that each implement one of these
interfaces and then route calls to each interface to its respective
implementation object and on top of that expose everything as WCF service?
container.Register(
Component.For<IFirst>().ImplementedBy<First>().Proxy.MixIns(m => m.Service<ISecond>()),
Component.For<ISecond>().ImplementedBy<Second>());
This is the idea, but I'm not sure how DynamicProxy will handle all the
WCF attributes.
Yes you can have one implementation that forwards to other
implementation but I thought you mentioned you wanted this to be dynamic...
using the ProxyMixIns doesnt seem to work
here is the current Code
i am trying to implement the following:
return new WindsorContainer()
.AddFacility<WcfFacility>()
.Register(
Component.For<IServiceBehavior>().Instance(metadata),
Component.For<IServiceBehavior>().Instance(debug),
//Component
// .For<IBlogServiceAlternate>()
// .ImplementedBy<AlternateBlogService>()
// .LifeStyle.Transient,
Component
.For<IBlogService, IBlogServiceAlternate>()
.ImplementedBy<DefaultBlogService>()
.Named("blogService")
.LifeStyle.Transient
.ActAs(new DefaultServiceModel().Hosted()
.AddBaseAddresses("http://localhost:50388/
BlogService.svc")
.AddEndpoints(WcfEndpoint.ForContract(typeof(IBlogService)).BoundTo(new
BasicHttpBinding()).At("/BlogService"),
WcfEndpoint.ForContract(typeof(IBlogServiceAlternate)).BoundTo(new
BasicHttpBinding()).At("/BlogServiceAlternate"))),
Component
.For<ILogger>()
.ImplementedBy<DefaultLogger>()
.LifeStyle.Transient
);
this code works gr8, but i want that IBlogService will be Implemented
By DefaultBlogService
and IBlogServiceAlternate will be Implemented by BlogServiceAlternate
i tried playing around with :
Proxy.MixIns(m => m.Service<IBlogServiceAlternate>)
but the thing i cant get the Service WSDL to add the new Interface.
maybe someone tried using Interceptors for doing it?
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-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.