public Ice.ConnectionInfo getWSInfo(Dictionary <string, string> headers) { Ice.WSConnectionInfo info = new Ice.WSConnectionInfo(); fillConnectionInfo(info); info.headers = headers; return(info); }
override public Dictionary <string, string> getConnectionInfoAsContext(Ice.Current c) { Dictionary <string, string> ctx = new Dictionary <string, string>(); Ice.ConnectionInfo info = c.con.getInfo(); ctx["adapterName"] = info.adapterName; ctx["incoming"] = info.incoming ? "true" : "false"; Ice.IPConnectionInfo ipinfo = getIPConnectionInfo(info); ctx["localAddress"] = ipinfo.localAddress; ctx["localPort"] = ipinfo.localPort.ToString(); ctx["remoteAddress"] = ipinfo.remoteAddress; ctx["remotePort"] = ipinfo.remotePort.ToString(); if (info is Ice.WSConnectionInfo) { Ice.WSConnectionInfo wsinfo = (Ice.WSConnectionInfo)info; foreach (KeyValuePair <string, string> e in wsinfo.headers) { ctx["ws." + e.Key] = e.Value; } } return(ctx); }
public Ice.ConnectionInfo getInfo() { Ice.WSConnectionInfo info = new Ice.WSConnectionInfo(); info.headers = _parser.getHeaders(); info.underlying = _delegate.getInfo(); return info; }
public Ice.ConnectionInfo getWSInfo(Dictionary<string, string> headers) { Ice.WSConnectionInfo info = new Ice.WSConnectionInfo(); fillConnectionInfo(info); info.headers = headers; return info; }
public Ice.ConnectionInfo getInfo() { Ice.IPConnectionInfo di = (Ice.IPConnectionInfo)_delegate.getInfo(); Ice.WSConnectionInfo info = new Ice.WSConnectionInfo(); info.localAddress = di.localAddress; info.localPort = di.localPort; info.remoteAddress = di.remoteAddress; info.remotePort = di.remotePort; return info; }