From 4624e6f04a96201ad3fa55ee176cc46243418c9f Mon Sep 17 00:00:00 2001 From: abhivijay96 Date: Thu, 19 May 2016 00:07:26 +0530 Subject: [PATCH] Update ServiceClient.cs --- .../ServiceClient.cs | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) 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; } ///