Info
| Version: | 1.0.1 | 
| Author(s): | HJ Meulekamp; [email protected] | 
| Last Update: | Sunday, June 10, 2012 | 
| .NET Fiddle: | Create the first Fiddle | 
| Project Url: | https://github.com/henkmeulekamp/WcfUserAgent | 
| NuGet Url: | https://www.nuget.org/packages/WcfUserAgent | 
Install
Install-Package WcfUserAgent
                        dotnet add package WcfUserAgent
                        paket add WcfUserAgent
                        
                                WcfUserAgent Download (Unzip the "nupkg" after downloading)
                            
                        Dependencies
Tags
                
After adding package check servicemodel in app/web.config
Set your useragent and set add behaviorConfiguration to existing endpoints for WCF services which need a useragent
<endpoint behaviorConfiguration="AddUserAgent_Behaviour" &/gt;
Based on:
http://msmvps.com/blogs/paulomorgado/archive/2007/04/27/wcf-building-an-http-user-agent-message-inspector.aspx.