Example #1
0
        public CurlResponse Execute(RushRequest request)
        {
            var wc           = this.GetAuthenticatedWebClient();
            var curlResponse = wc.PostObjectAsJson <CurlResponse>(executeUrl, request);

            if (RushStatusChanged != null)
            {
                PollStatus(curlResponse);
            }

            return(curlResponse);
        }
        public RushRequest AsRushRequest()
        {
            var request = new RushRequest
            {
                region  = this.region,
                steps   = this.steps.ToArray(),
                pattern = new Pattern
                {
                    intervals  = this.intervals.ToArray(),
                    iterations = 1
                }
            };

            return(request);
        }