Beispiel #1
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);
            }
Beispiel #2
0
        /** Return a version of the Dictionary suitable for ADR use
         * maps:
         * "address" => Address.ToString()
         * "sender" => Edge.ToUri()
         * "type" => ConType
         */

        public IDictionary ToDictionary()
        {
            ListDictionary d;

            if (_as_dict.TryGet(out d))
            {
                return(d);
            }
            ListDictionary ld = new ListDictionary();

            ld.Add("address", Address.ToString());
            ld.Add("sender", Edge.ToUri());
            ld.Add("type", ConType);
            _as_dict.TrySet(ld);
            return(ld);
        }