Esempio n. 1
0
 /// <summary>
 /// Adds user agent to UserAgents collection.
 /// </summary>
 /// <param name="productName">Product name.</param>
 /// <param name="productVersion">Product version.</param>
 public void AddUserAgent(string productName, string productVersion)
 {
     UserAgents.Add(new ProductInfoHeaderValue(productName, productVersion));
 }
Esempio n. 2
0
 /// <inheritdoc/>
 public override void ResetDefaults()
 {
     base.ResetDefaults();
     UserAgents.Add(new ProductInfoHeaderValue("rackspace.net", GetType().GetAssemblyFileVersion()));
 }