Example #1
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 #2
0
        public VcapClientResult Target(string uri)
        {
            var helper = new MiscHelper(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 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 #4
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));
            }
        }