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