Esempio n. 1
0
        public static RestClient BuildClient(string baseUrl)
        {
            var restClient = new RestClient(baseUrl);

            restClient.UserAgent = string.Format("Sonarr/{0} (RestSharp/{1}; {2}/{3})",
                BuildInfo.Version,
                restClient.GetType().Assembly.GetName().Version,
                OsInfo.Os, OsInfo.Version.ToString(2));

            return restClient;
        }