本文整理汇总了C#中IRequest.GetProcessorAsType方法的典型用法代码示例。如果您正苦于以下问题:C# IRequest.GetProcessorAsType方法的具体用法?C# IRequest.GetProcessorAsType怎么用?C# IRequest.GetProcessorAsType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IRequest
的用法示例。
在下文中一共展示了IRequest.GetProcessorAsType方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FolderTreeCallback
static void FolderTreeCallback(IRequest req)
{
Console.WriteLine();
FolderListProcessor flp = req.GetProcessorAsType<FolderListProcessor>();
}
示例2: MessageHeaderComplete
private void MessageHeaderComplete(IRequest req)
{
UpdateTextBox(req.Result.Results);
UpdateLabel("");
MessageHeaderProcessor mhp = req.GetProcessorAsType<MessageHeaderProcessor>();
StringBuilder sb = new StringBuilder();
sb.AppendFormat("To Count: {0}{1}", mhp.Message.ToContacts.Length, Environment.NewLine);
sb.AppendFormat("From Count: {0}{1}", mhp.Message.FromContacts.Length, Environment.NewLine);
//MessageBox.Show(sb.ToString());
}
示例3: MessageListComplete
private void MessageListComplete(IRequest req)
{
MessageListProcessor mlp = req.GetProcessorAsType<MessageListProcessor>();
//mlp.Request.Command.
//textBox1.Invoke(new UpdateTextCallback(UpdateTextBox), new object[] {mlp.CmdResult.Results});
UpdateTextBox(mlp.CmdResult.Results);
UpdateMessageList(mlp.UIDs);
UpdateLabel("");
}
示例4: FolderTreeCallback
private void FolderTreeCallback(IRequest req)
{
Console.WriteLine();
FolderListProcessor flp = req.GetProcessorAsType<FolderListProcessor>();
foreach (IFolder f in client.MailboxManager.Folders)
{
folderListBox.Invoke(new UpdateFolderListCallback(UpdateFolderList), new object[] {f.FullPath});
}
//label1.Invoke(new UpdateLabelCallback(UpdateLabel), new object[] {""});
UpdateFolderListState(false);
UpdateLabel("Populating folder data...");
client.MailboxManager.PopulateFolderData(FolderDataProgress, FolderDataCompleted);
}