wcf - Access TCP header when using HTTP binding -
i have restful service exposed via wcf webhttpbinding.
i asked tcp header (specifically packet ttl). hard approach switch net.tcp binding , handle http layer myself.
there must easier way... please help!
as you've found out, wcf abstracts message transport (tcp, http, ...) implementing binding concept (nettcpbinding, basichttpbinding, ...). benefit able (most of time) alter bindings without affecting service code. trade off ease hiding transport details service code. in fact, hard client ip address in wcf.
on other hand, wcf extensible can "re-implement" webhttpbinding custom binding can bubble tcp info want. so question & answer give start on custom binding you'll need create custom http transport component access tcp details. when tool makes work hard, there's chance you're using wrong tool. sayin' ... :)
wcf tcp webhttpbinding
No comments:
Post a Comment