Hi all,

I already found it after opening up the castle sourcecode :)

AttributesToAvoidReplicating.Add<ServiceContractAttribute>();

greetings,
Tim

2009/5/15 Bridge <[email protected]>

> Hi all,
>
> I use the CreateInterfaceProxyWithoutTarget method on the
> ProxyGenerator class to create a proxy instance from a WCF service (so
> the real service implementation, not a client), I use the without
> target because I want to create a generic implementation for multiple
> WCF ServiceContract's.....
>
> but now comes the question, It seems that the proxy get's the same
> attributes as the interface, in my example meaning the
> ServiceContract, is it possibile to say while generation not to
> decorate the proxy with the attributes from the interface?
>
> In my case I need this since a ServiceHost throws an exception when
> the implementation and the contract both are decorated with the
> ServiceContractAttribute.........
>
> thanks in advance,
>
> greetings,
> Tim

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