I want to duplicate a ServiceContract. The problem is that the MOQ (and the Castle dynamic-proxy) properties from the copies interface for dynamic proxy which does not like WCF WCF says: ServiceContractAttribute should be defined not only on both the interface or the implementation
The exception is:. InvalidOperationException - Type Castle.Proxies.IWorkOrderRequestServiceProxy service class defines both a ServiceContract and can be used between IWorkOrderRequestService only a type of service content contract inherited from the legacy interface types. If a class service is marked with content attachments, the service should be the only type of hierarchy with content attack. To type the IWorkOrderRequestService Tool, type a different interface that is considered to move ServiceContractAttribute on type IWorkOrderRequestService
UPDATE: Including a property (collection) attributesToAvoidReplicating, a place looks like MoQ to start looking at source code
for the # 2 update One reference: it's somehow !
Add:.
Castle.DynamicProxy.Generators.AttributesToAvoidReplicating.Add (typeof (ServiceContractAttribute));
Before you even wire anything in your kernel
Comments
Post a Comment