public IConfiguration GetConfiguration() { var client = new RestClient(ServiceUrl); IRestRequest request = _restSharpHelper.CreateRequest(""); IRestResponse response = client.Execute(request); return(_restSharpHelper.DeserializeOrThrow <JsonConfiguration>(response)); }
public IEnumerable <Environment> Get() { var client = new RestClient(ServiceUrl); IRestRequest request = _restSharpHelper.CreateRequest(); IRestResponse response = client.Execute(request); return(_restSharpHelper.DeserializeOrThrow <IEnumerable <Environment> >(response)); }
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)); }