Example #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="e"></param>
 private void OnMessageReceived(ImapIdleCommandMessageReceivedEventArgs e)
 {
     var eh = this.MessageReceived;
     if (eh != null)
     {
         eh(this, e);
     }
 }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="e"></param>
        private void OnMessageReceived(ImapIdleCommandMessageReceivedEventArgs e)
        {
            var eh = this.MessageReceived;

            if (eh != null)
            {
                eh(this, e);
            }
        }
Example #3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="size"></param>
        /// <returns></returns>
        protected override bool ParseBuffer(int size)
        {
            var position = this.Stream.Position;
            var bl = base.ParseBuffer(size);
            this.Stream.Position = position;

            var text = this.Encoding.GetString(this.Stream.ToByteArray());
            var e = new ImapIdleCommandMessageReceivedEventArgs(text);
            this.OnMessageReceived(e);
            return e.Done == false;
        }
Example #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="size"></param>
        /// <returns></returns>
        public override bool ReadBuffer(int size)
        {
            var position = this.Stream.Position;
            var bl       = base.ReadBuffer(size);

            this.Stream.Position = position;

            var text = this.Encoding.GetString(this.Stream.ToByteArray());
            var e    = new ImapIdleCommandMessageReceivedEventArgs(text);

            this.OnMessageReceived(e);
            return(e.Done == false);
        }