【问题标题】:Displaying progress of fetching in MailKit在 MailKit 中显示获取进度
【发布时间】:2017-07-01 01:53:31
【问题描述】:

当我在邮箱 client.Inbox.Fetch() 方法中有很多消息持续很长时间并且用户认为程序没有响应时。我可以显示获取消息的进度吗?

IList<IMessageSummary> allMailList = client.Inbox.Fetch(0, -1, MessageSummaryItems.Envelope | MessageSummaryItems.UniqueId, cancellationToken);

【问题讨论】:

    标签: fetch mailkit


    【解决方案1】:

    您可以连接到ImapFolder.MessageSummaryFetched 事件,并根据被调用的次数与您要获取的摘要信息的消息数量相比,提供一些进度报告。

    【讨论】:

      猜你喜欢
      • 2016-12-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-04
      • 2016-01-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多