Ejemplo n.º 1
0
		void MessagesArrived_TaskThread (object sender, MessagesArrivedEventArgs e)
		{
			// proxy back to the main thread
			Invoke (new EventHandler<MessagesArrivedEventArgs> (MessagesArrived), sender, e);
		}
Ejemplo n.º 2
0
		async void MessagesArrived (object sender, MessagesArrivedEventArgs e)
		{
			var folder = (IMailFolder) sender;

			var summaries = await folder.FetchAsync (messages.Count, -1, MessageSummaryItems.Full | MessageSummaryItems.UniqueId);

			AddMessageSummaries (summaries);
		}
Ejemplo n.º 3
0
 private async void ImapIdlerOnMessageArrived(object sender, MessagesArrivedEventArgs eventArgs)
 {
     Trace.WriteLine($"{MailBoxName}: New message event");
     await NewMessageQueue(eventArgs.Count);
 }
Ejemplo n.º 4
0
		/// <summary>
		/// Raise the messages arrived event.
		/// </summary>
		/// <remarks>
		/// Raises the messages arrived event.
		/// </remarks>
		/// <param name="args">The messages arrived event args.</param>
		protected virtual void OnMessagesArrived (MessagesArrivedEventArgs args)
		{
			var handler = MessagesArrived;

			if (handler != null)
				handler (this, args);
		}
Ejemplo n.º 5
0
 protected virtual void InboxOnMessagesArrived(object sender, MessagesArrivedEventArgs messagesArrivedEventArgs)
 {
     MessageArrived?.Invoke(sender, messagesArrivedEventArgs);
 }