예제 #1
0
        public List <ScriptDefinition> GetEndpointScripts()
        {
            string url    = Url + @"scripts/production/EndpointModule";
            string result = SimpleRestClient.Get(url);

            return(Newtonsoft.Json.JsonConvert.DeserializeObject <List <ScriptDefinition> >(result));
        }
예제 #2
0
        public string ExecuteEndpointSecure(Credentials c, string name, dynamic args)
        {
            string argString = Newtonsoft.Json.JsonConvert.SerializeObject(args, Newtonsoft.Json.Formatting.Indented);
            string url       = Url + $@"EndPoint/{name}";

            return(SimpleRestClient.Post(url, argString, c.Username, c.Password));
        }
예제 #3
0
        public List <string> GetExpiredQueues()
        {
            string url    = Url + "ExpiredQueues";
            string result = SimpleRestClient.Get(url);

            return(Newtonsoft.Json.JsonConvert.DeserializeObject <List <string> >(result));
        }