Files
Readarr/src/Hqub.MusicBrainz.API/Configuration.cs
T
2017-03-30 20:37:24 -06:00

37 lines
1014 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace Hqub.MusicBrainz.API
{
public static class Configuration
{
static Configuration()
{
GenerateCommunicationThrow = true;
Proxy = null;
UserAgent = "Hqub.MusicBrainz/2.0";
}
/// <summary>
/// If true, then all exceptions for http-requests to MusicBrainz (from class WebRequestHelper) will
/// throw up. Otherwise they will be suppressed.
/// </summary>
public static bool GenerateCommunicationThrow { get; set; }
/// <summary>
/// Gets or sets a <see cref="System.Net.IWebProxy"/> used to query the webservice.
/// </summary>
public static IWebProxy Proxy { get; set; }
/// <summary>
/// Allow set cutstom user agent string.
/// </summary>
public static string UserAgent { get; set; }
}
}