Ejemplo n.º 1
0
        public void drop(DropReason reason)
        {
            bool didDrop = false;

            if (!dropped)
            {
                dropped = true;
                didDrop = true;
                DroppedEvent?.Invoke(this, reason);
            }

            if (didDrop)
            {
                transport.close();
            }
        }
Ejemplo n.º 2
0
        public void drop(DropReason reason)
        {
            bool did_drop = false;

            if (!dropped)
            {
                dropped  = true;
                did_drop = true;
                if (DroppedEvent != null)
                {
                    DroppedEvent(this, reason);
                }
            }

            if (did_drop)
            {
                transport.close();
            }
        }
Ejemplo n.º 3
0
        public void drop(DropReason reason)
        {
            bool did_drop = false;
            if (!dropped)
            {
                dropped = true;
                did_drop = true;
                if (DroppedEvent != null)
                    DroppedEvent(this, reason);
            }

            if (did_drop)
            {
                transport.close();
            }
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PayloadDropEventArgs"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="payload">The payload.</param>
 /// <param name="dropReason">The drop reason.</param>
 internal PayloadDropEventArgs(RollbarLogger logger, Payload payload, DropReason dropReason)
     : base(logger, payload)
 {
     this.Reason = dropReason;
 }