MSMQ and WCF contracts
I am creating a WCF service which is bound to an MSMQ. This will be using the MSMQ Integrated binding.
Now the plan is to place the messages on the MSMQ which implements a given interface (ie: IPerson)
if IPerson has 3 properties:
string Name
int Age
string address
and a message gets sent using this contract, WCF reads it fine and can process etc...
however, what if we decide in future to add an additional property?
Will WCF fail to process that message and classify it as poison?
How can I make the service so that it is somewhat future compatible?
Thanks
您可以在datacontract中使用IExtensibileDataObject您可以在msdn上找到更多信息:http://msdn.microsoft.com/zh-cn/library/system.runtime.serialization.iextensibledataobject.aspx
链接地址: http://www.djcxy.com/p/55812.html下一篇: MSMQ和WCF合同