Exemple #1
0
        public void Send(ILetter letter)
        {
            Queuing?.Invoke(letter, new QueuingEventArgs {
                Socket = this
            });

            _letterDispatcher.EnqueueLetter(letter);
        }
        public void Send(ILetter letter)
        {
            Action <ILetter, IQueuingEventArgs> evnt = Queuing;

            if (evnt != null)
            {
                evnt(letter, new QueuingEventArgs {
                    Socket = this
                });
            }

            _letterDispatcher.EnqueueLetter(letter);
        }