Example #1
0
                public override void CommandCompleted(cCommandResult pResult, cTrace.cContext pParentContext)
                {
                    var lContext = pParentContext.NewMethod(nameof(cCommandHookLSub), nameof(CommandCompleted), pResult);

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

                    mCache.ResetLSubFlags(mPattern, mSequence, lContext);
                    MailboxHandles = mCache.GetHandles(mMailboxes);
                }
Example #2
0
                public override void CommandCompleted(cCommandResult pResult, cTrace.cContext pParentContext)
                {
                    var lContext = pParentContext.NewMethod(nameof(cListExtendedCommandHook), nameof(CommandCompleted), pResult);

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

                    if (mSelect == eListExtendedSelect.exists)
                    {
                        mCache.ResetExists(mPattern, mSequence, lContext);
                    }
                    if (mSelect == eListExtendedSelect.subscribed || mSelect == eListExtendedSelect.subscribedrecursive)
                    {
                        mCache.ResetLSubFlags(mPattern, mSequence, lContext);
                    }
                    if (mStatus)
                    {
                        mCache.ResetStatus(mPattern, mSequence, lContext);
                    }

                    MailboxHandles = mCache.GetHandles(mMailboxes);
                }