Пример #1
0
        public Reference create(Ice.Identity ident, Ice.ConnectionI connection)
        {
            if (ident.name.Length == 0 && ident.category.Length == 0)
            {
                return(null);
            }

            //
            // Create new reference
            //
            return(new FixedReference(
                       instance_,
                       _communicator,
                       ident,
                       "", // Facet
                       connection.endpoint().datagram() ? Reference.Mode.ModeDatagram : Reference.Mode.ModeTwoway,
                       connection.endpoint().secure(),
                       instance_.defaultsAndOverrides().defaultEncoding,
                       connection));
        }
Пример #2
0
        public Reference create(Ice.Identity ident, Ice.ConnectionI connection)
        {
            if (ident.name.Length == 0 && ident.category.Length == 0)
            {
                return(null);
            }

            //
            // Create new reference
            //
            return(new FixedReference(
                       _instance,
                       _communicator,
                       ident,
                       "", // Facet
                       connection.endpoint().datagram() ? Reference.Mode.ModeDatagram : Reference.Mode.ModeTwoway,
                       connection.endpoint().secure(),
                       Ice.Util.Protocol_1_0,
                       _instance.defaultsAndOverrides().defaultEncoding,
                       connection,
                       -1,
                       null,
                       new Ice.Optional <bool>()));
        }