开发者

WCF response object contents

开发者 https://www.devze.com 2023-01-07 06:28 出处:网络
I see WCF response types (i.e. the types of objects returned from WCF handlers) containing DTO types which in-turn contain the fields t开发者_如何学运维he client is interested in. Is this standard pra

I see WCF response types (i.e. the types of objects returned from WCF handlers) containing DTO types which in-turn contain the fields t开发者_如何学运维he client is interested in. Is this standard practise? Why not put the fields directly on the response type?


What WCF returns depends upon the binding details (TCP, HTTP etc) and the proxy. Transferring DTO is a standard practice.

0

精彩评论

暂无评论...
验证码 换一张
取 消