示例#1
0
        public void Go()
        { 
            /*
             * If an actionprovider has not been set, we create one.
             */
            if(this.actionProvider == null)
            {
                this.actionProvider = new SettableActionProvider(success, fail);
            }

            Request req = new Request
            {
                Url = url,
                Method = method,
                Action = actionProvider,
                Auth = authProvider,
                Headers = headerProvider,
                Body = bodyProvider
            };

            req.Go();
            
        }