Fix build

This commit is contained in:
crobibero
2020-08-19 07:09:07 -06:00
parent ac5c0866f3
commit f6b8cd4b46
3 changed files with 8 additions and 34 deletions

View File

@@ -14,10 +14,13 @@ namespace MediaBrowser.Common.Net
{
private readonly ProductInfoHeaderValue[] _userAgentValues;
/// <inheritdoc />
/// <summary>
/// Initializes a new instance of the <see cref="UserAgentDelegatingHandler"/> class.
/// </summary>
/// <param name="applicationHost">Instance of the <see cref="IApplicationHost"/> interface.</param>
public UserAgentDelegatingHandler(IApplicationHost applicationHost)
{
_userAgentValues = new []
_userAgentValues = new[]
{
new ProductInfoHeaderValue(applicationHost.Name.Replace(' ', '-'), applicationHost.ApplicationVersionString),
new ProductInfoHeaderValue($"({Environment.OSVersion}; {applicationHost.ApplicationUserAgentAddress})")