//
        // Write a object instance to data output stream
        //
        public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut)
        {
            RemoveSubscriptionInfo info = (RemoveSubscriptionInfo)o;

            base.LooseMarshal(wireFormat, o, dataOut);
            LooseMarshalCachedObject(wireFormat, (DataStructure)info.ConnectionId, dataOut);
            LooseMarshalString(info.SubcriptionName, dataOut);
            LooseMarshalString(info.ClientId, dataOut);
        }
Esempio n. 2
0
        public async Task DeleteDurableConsumerAsync(string name)
        {
            RemoveSubscriptionInfo command = new RemoveSubscriptionInfo();

            command.ConnectionId    = Connection.ConnectionId;
            command.ClientId        = Connection.ClientId;
            command.SubcriptionName = name;
            await this.connection.SyncRequestAsync(command).Await();
        }
Esempio n. 3
0
        public void DeleteDurableConsumer(string name)
        {
            RemoveSubscriptionInfo command = new RemoveSubscriptionInfo();

            command.ConnectionId    = Connection.ConnectionId;
            command.ClientId        = Connection.ClientId;
            command.SubcriptionName = name;
            this.connection.SyncRequest(command);
        }
        //
        // Write a object instance to data output stream
        //
        public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs)
        {
            base.TightMarshal2(wireFormat, o, dataOut, bs);

            RemoveSubscriptionInfo info = (RemoveSubscriptionInfo)o;

            TightMarshalCachedObject2(wireFormat, (DataStructure)info.ConnectionId, dataOut, bs);
            TightMarshalString2(info.SubcriptionName, dataOut, bs);
            TightMarshalString2(info.ClientId, dataOut, bs);
        }
        //
        // Un-marshal an object instance from the data input stream
        //
        public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs)
        {
            base.TightUnmarshal(wireFormat, o, dataIn, bs);

            RemoveSubscriptionInfo info = (RemoveSubscriptionInfo)o;

            info.ConnectionId    = (ConnectionId)TightUnmarshalCachedObject(wireFormat, dataIn, bs);
            info.SubcriptionName = TightUnmarshalString(dataIn, bs);
            info.ClientId        = TightUnmarshalString(dataIn, bs);
        }
        //
        // Un-marshal an object instance from the data input stream
        //
        public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn)
        {
            base.LooseUnmarshal(wireFormat, o, dataIn);

            RemoveSubscriptionInfo info = (RemoveSubscriptionInfo)o;

            info.ConnectionId    = (ConnectionId)LooseUnmarshalCachedObject(wireFormat, dataIn);
            info.SubcriptionName = LooseUnmarshalString(dataIn);
            info.ClientId        = LooseUnmarshalString(dataIn);
        }
Esempio n. 7
0
        public void DeleteDurableConsumer(String name)
        {
            var command = new RemoveSubscriptionInfo
            {
                ConnectionId     = Connection.ConnectionId,
                ClientId         = Connection.ClientId,
                SubscriptionName = name
            };

            Connection.SyncRequest(command);
        }
        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            RemoveSubscriptionInfo info = (RemoveSubscriptionInfo)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);

            rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.ConnectionId, bs);
            rc += TightMarshalString1(info.SubcriptionName, bs);
            rc += TightMarshalString1(info.ClientId, bs);

            return(rc + 0);
        }
 public virtual Response processRemoveSubscriptionInfo(RemoveSubscriptionInfo info)
 {
     return(null);
 }