Пример #1
0
        public HandyController(bool hostLocal)
        {
            if (hostLocal)
            {
                LocalScriptServer = new HandyScriptServer();
            }

            _apiCallQueue = new BlockingTaskQueue();
            _http         = new HttpClient();
            _http.DefaultRequestHeaders.Accept.Clear();
            _http.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
            _http.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("text/plain"));
        }