コード例 #1
0
        public IConfiguration GetConfiguration()
        {
            var          client  = new RestClient(ServiceUrl);
            IRestRequest request = _restSharpHelper.CreateRequest("");

            IRestResponse response = client.Execute(request);

            return(_restSharpHelper.DeserializeOrThrow <JsonConfiguration>(response));
        }
コード例 #2
0
ファイル: EnvironmentsClient.cs プロジェクト: timiles/Syringe
        public IEnumerable <Environment> Get()
        {
            var          client  = new RestClient(ServiceUrl);
            IRestRequest request = _restSharpHelper.CreateRequest();

            IRestResponse response = client.Execute(request);

            return(_restSharpHelper.DeserializeOrThrow <IEnumerable <Environment> >(response));
        }
コード例 #3
0
ファイル: TestsClient.cs プロジェクト: danieltendaj/Syringe
        public IEnumerable <string> ListFiles()
        {
            var          client  = new RestClient(ServiceUrl);
            IRestRequest request = _restSharpHelper.CreateRequest("testfiles");

            IRestResponse response = client.Execute(request);

            return(_restSharpHelper.DeserializeOrThrow <IEnumerable <string> >(response));
        }