예제 #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));
 }
예제 #2
0
 /// <inheritdoc/>
 public override void ResetDefaults()
 {
     base.ResetDefaults();
     UserAgents.Add(new ProductInfoHeaderValue("rackspace.net", GetType().GetAssemblyFileVersion()));
 }