コード例 #1
0
ファイル: delete.cs プロジェクト: bacome/imapclient
                public override void CommandCompleted(cCommandResult pResult, cTrace.cContext pParentContext)
                {
                    var lContext = pParentContext.NewMethod(nameof(cDeleteCommandHook), nameof(CommandCompleted), pResult);

                    if (pResult.ResultType == eCommandResultType.ok)
                    {
                        mItem.ResetExists(lContext);
                    }
                }
コード例 #2
0
                public override void CommandCompleted(cCommandResult pResult, cTrace.cContext pParentContext)
                {
                    var lContext = pParentContext.NewMethod(nameof(cStatusCommandHook), nameof(CommandCompleted), pResult);

                    if (pResult.ResultType == eCommandResultType.bad || mItem.Exists == false)
                    {
                        return;
                    }
                    if (mItem.Status == null || mItem.Status.Sequence < mSequence)
                    {
                        mItem.ResetExists(lContext);
                    }
                }
コード例 #3
0
                public override void CommandCompleted(cCommandResult pResult, cTrace.cContext pParentContext)
                {
                    var lContext = pParentContext.NewMethod(nameof(cRenameCommandHook), nameof(CommandCompleted), pResult);

                    if (pResult.ResultType != eCommandResultType.ok)
                    {
                        return;
                    }

                    if (mItem != null)
                    {
                        mItem.ResetExists(lContext);
                        if (mItem.MailboxName.Delimiter != null)
                        {
                            mCache.ResetExists(new cMailboxPathPattern(mItem.MailboxName.Path + mItem.MailboxName.Delimiter, "*", mItem.MailboxName.Delimiter), mSequence, lContext);
                        }
                    }

                    MailboxHandle = mCache.Create(mMailboxName, lContext);
                }