Exemple #1
0
 public EventBusParams(EventBusParams rhs) : base(rhs)
 {
     this.ticketValue              = rhs.ticketValue;
     this.userIdValue              = rhs.userIdValue;
     this.channelIdValue           = rhs.channelIdValue;
     this.noForwardToOtherIxsValue = rhs.noForwardToOtherIxsValue;
 }
Exemple #2
0
        /// <summary>
        /// This function opens an event bus for the given channel ID.
        /// </summary>
        /// <remarks>
        /// Other applications recieve the same bus ID, if they pass the same channel ID.
        /// </remarks>
        /// <param name="channelId">Either an arbitary ID used to create most likely uniqe bus ID.
        /// Or null, in order to create a random bus ID.
        /// </param>
        /// <returns>Bus object.</returns>
        public Bus OpenEventBusChannel(String channelId)
        {
            EventBusParams p = new EventBusParams();

            p.channelId = channelId;
            long busId = conn.Ix.openEventBus(p);

            return(GetEventBus(busId));
        }
        public override void write(Object obj1, BOutput bout1, long version)
        {
            base.write(obj1, bout1, version);
            EventBusParams obj  = (EventBusParams)obj1;
            BOutputBin     bout = (BOutputBin)bout1;
            BBufferBin     bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.channelId);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.ticket);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.userId);
            if (version >= 800000032000011L)
            {
                // checkpoint byps.gen.cs.PrintContext:494
                bbuf.putBoolean(obj.noForwardToOtherIxs);
            }
        }
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin      bin = (BInputBin)bin1;
            EventBusParams obj = (EventBusParams)(obj1 != null ? obj1 : bin.onObjectCreated(new EventBusParams()));

            base.read(obj, bin1, version);
            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.channelId = bbuf.getString();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.ticket = bbuf.getString();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.userId = bbuf.getString();
            if (version >= 800000032000011L)
            {
                // checkpoint byps.gen.cs.PrintContext:449
                obj.noForwardToOtherIxs = bbuf.getBoolean();
            }

            return(obj);
        }