Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF: show all the config params of a channel at runtime

Tags:

c#

.net

wcf

I need to remove WcfContrib from a WCF service. In a nutshell, it is a library to "max out" all the parameters of a WCF channel (timeouts, message size, etc...).

Now, to ensure I don't break the service, I need to be 100% sure that after I remove WcfContrib I keep all the current parameters maximized.

Therefore, I am looking for a way to log/display on a page the "runtime values" of a channel.

I am also open to alternative solutions/suggestions.

Thanks in advance

like image 739
br1 Avatar asked Oct 30 '22 04:10

br1


1 Answers

I've never seen that kind of tool before. But I have an idea about this.

You can develop a WCF endpoint behavior extension for this. This endpoint behavior can get these values that you are interested and log to somewhere.

This way you don't have to change your service code or something. You will just add this endpoint behavior to web.config of your application.

like image 150
fduman Avatar answered Nov 15 '22 05:11

fduman