EncodeUri() public static method

public static EncodeUri ( string scheme, string>.IDictionary opts ) : string
scheme string
opts string>.IDictionary
return string
示例#1
0
        public System.String ToUri()
        {
            var kv = new SCG.Dictionary <string, string>();

            kv["wrap"] = _wrapped_sender.ToUri();
            kv["max"]  = MAX_PAYLOAD_SIZE.ToString();
            return(SenderFactory.EncodeUri("frag", kv));
        }
示例#2
0
            public string ToUri()
            {
                string uri;

                if (_uri.TryGet(out uri) == false)
                {
                    Dictionary <string, string> kvpairs = new Dictionary <string, string>();
                    kvpairs["id"]      = LocalID.ToString();
                    kvpairs["retpath"] = RequestKey.Sender.ToUri();
                    uri = SenderFactory.EncodeUri("replystate", kvpairs);
                    _uri.TrySet(uri);
                }
                return(uri);
            }