Example #1
0
 internal VcapRequest GetRequestForTesting()
 {
     var helper = new MiscHelper(proxyUser, credMgr);
     return helper.BuildInfoRequest();
 }
Example #2
0
        public VcapClientResult Target(string uri)
        {
            var helper = new MiscHelper(proxyUser, credMgr);

            if (uri.IsNullOrWhiteSpace())
            {
                return helper.Target();
            }
            else
            {
                Uri tmp;
                if (Uri.TryCreate(uri, UriKind.Absolute, out tmp))
                {
                    return helper.Target(tmp);
                }
                else
                {
                    return helper.Target(new Uri("http://" + uri));
                }
            }
        }
Example #3
0
        public void Target(string uri)
        {
            if (uri.IsNullOrWhiteSpace())
            {
                throw new ArgumentException("uri");
            }

            var helper = new MiscHelper(proxyUser, credMgr);

            Uri tmp;
            if (Uri.TryCreate(uri, UriKind.Absolute, out tmp))
            {
                helper.Target(tmp);
            }
            else
            {
                helper.Target(new Uri("http://" + uri));
            }
        }
Example #4
0
 public VcapClientResult Info()
 {
     var helper = new MiscHelper(proxyUser, credMgr);
     return helper.Info();
 }
Example #5
0
 public Info GetInfo()
 {
     var helper = new MiscHelper(proxyUser, credMgr);
     return helper.GetInfo();
 }