Exemple #1
0
        public void Send(object message)
        {
            var envelope = new SenderEnvelope(message);

            lock (_syncLock)
            {
                _sendQueue.Enqueue(envelope);

                if (Status == SenderStatus.Idle)
                {
                    TryToSendFirstMessageInQueue();
                }
            }
        }
 public SenderEventArgs(SenderEnvelope envelope, SenderEventType eventType)
 {
     Envelope = envelope;
     EventType = eventType;
 }