Ejemplo n.º 1
0
        // -- outgoing publish events --

        void OnPubackReceived(PubackPacket packet)
        {
            if (PubackReceived != null)
            {
                PubackReceived(this, new IdentifiedPacketEventArgs(packet));
            }

            if (PublishSent != null)
            {
                PublishSent(this, new IdentifiedPacketEventArgs(packet));
            }

            Persistence.SetOutgoingFlowCompleted(packet.PacketId);

            this.IsPublishing = false;
        }
Ejemplo n.º 2
0
        // -- outgoing publish events --

        void OnPubackReceived(PubackPacket packet)
        {
            Persistence.SetOutgoingFlowCompleted(packet.PacketId);
            this.IsPublishing = false;
        }