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

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

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