Exemplo n.º 1
0
        public IConfiguration GetConfiguration()
        {
            var          client  = new RestClient(ServiceUrl);
            IRestRequest request = _restSharpHelper.CreateRequest("");

            IRestResponse response = client.Execute(request);

            return(_restSharpHelper.DeserializeOrThrow <JsonConfiguration>(response));
        }
Exemplo n.º 2
0
        public IEnumerable <Environment> Get()
        {
            var          client  = new RestClient(ServiceUrl);
            IRestRequest request = _restSharpHelper.CreateRequest();

            IRestResponse response = client.Execute(request);

            return(_restSharpHelper.DeserializeOrThrow <IEnumerable <Environment> >(response));
        }
Exemplo n.º 3
0
        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));
        }