diff --git a/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/ServiceClient.cs b/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/ServiceClient.cs index 104af8135770e..bba5be03f8a2a 100644 --- a/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/ServiceClient.cs +++ b/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/ServiceClient.cs @@ -210,8 +210,9 @@ protected void InitializeHttpClient(HttpClientHandler httpClientHandler, params HttpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue(type.FullName, GetClientVersion())); } - - //A mehtod to set user agent + /// + ///A mehtod to set user agent + /// public bool SetUserAgent(string productName) { if(!_disposed && HttpClient != null) @@ -224,12 +225,14 @@ public bool SetUserAgent(string productName) // returns true if the userAgent was added return true; } - // returns false if the httpclient was disposed before invoking the method + /// + ///returns false if the httpclient was disposed before invoking the method + /// return false; } - - //Another method to setuseragent and it's version - + /// + ///Another method to setuseragent and its version + /// public bool SetUserAgent(string productName,string version) { if(!_disposed && HttpClient != null) @@ -239,10 +242,14 @@ public bool SetUserAgent(string productName,string version) /// HttpClient.DefaultRequestHeaders.UserAgent.Clear(); HttpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue(productName,version)); - // returns true if the userAgent was added + /// + // returns true if the userAgent was added + /// return true; } - // returns false if the httpclient was disposed before invoking the method + /// + /// returns false if the httpclient was disposed before invoking the method + /// return false; } ///