public cListExtendedCommandHook(cMailboxCache pCache, eListExtendedSelect pSelect, cMailboxPathPattern pPattern, bool pStatus) { mCache = pCache; mSelect = pSelect; mPattern = pPattern; mStatus = pStatus; }
public cCommandHookSelect(cMailboxCache pMailboxCache, cCapabilities pCapabilities, iMailboxHandle pMailboxHandle, bool pForUpdate) { mMailboxCache = pMailboxCache ?? throw new ArgumentNullException(nameof(pMailboxCache)); mCapabilities = pCapabilities ?? throw new ArgumentNullException(nameof(pCapabilities)); mMailboxHandle = pMailboxHandle ?? throw new ArgumentNullException(nameof(pMailboxHandle)); mForUpdate = pForUpdate; }
public void Enable(cMailboxCache pMailboxCache, cTrace.cContext pParentContext) { var lContext = pParentContext.NewMethod(nameof(cResponseTextProcessor), nameof(Enable)); if (mMailboxCache != null) { throw new InvalidOperationException(kInvalidOperationExceptionMessage.AlreadyEnabled); } mMailboxCache = pMailboxCache ?? throw new ArgumentNullException(nameof(pMailboxCache)); }
public void SetEnabled(cTrace.cContext pParentContext) { var lContext = pParentContext.NewMethod(nameof(cSession), nameof(SetEnabled)); if (mDisposed) { throw new ObjectDisposedException(nameof(cSession)); } if (_ConnectionState != eConnectionState.authenticated) { throw new InvalidOperationException(kInvalidOperationExceptionMessage.NotAuthenticated); } bool lUTF8Enabled = (EnabledExtensions & fEnableableExtensions.utf8) != 0; if (lUTF8Enabled) { mCommandPartFactory = new cCommandPartFactory(true, null); mEncodingPartFactory = mCommandPartFactory; } mStatusAttributes = mMailboxCacheDataItems & fMailboxCacheDataItems.allstatus; if (!_Capabilities.CondStore) { mStatusAttributes &= ~fMailboxCacheDataItems.highestmodseq; } mMailboxCache = new cMailboxCache(mSynchroniser, mMailboxCacheDataItems, mCommandPartFactory, _Capabilities, ZSetState); mPipeline.Install(new cResponseTextCodeParserSelect(_Capabilities)); mPipeline.Install(new cResponseDataParserSelect()); mPipeline.Install(new cResponseDataParserFetch()); mPipeline.Install(new cResponseDataParserList(lUTF8Enabled)); mPipeline.Install(new cResponseDataParserLSub(lUTF8Enabled)); if (_Capabilities.ESearch || _Capabilities.ESort) { mPipeline.Install(new cResponseDataParserESearch()); } mPipeline.Enable(mMailboxCache, _Capabilities, lContext); ZSetState(eConnectionState.enabled, lContext); }
public cCommandHookListMailboxes(cMailboxCache pCache, cMailboxPathPattern pPattern) { mCache = pCache; mPattern = pPattern; }
public cCloseCommandHook(cMailboxCache pMailboxCache) { mMailboxCache = pMailboxCache ?? throw new ArgumentNullException(nameof(pMailboxCache)); }
public cCommandHookLSub(cMailboxCache pCache, cMailboxPathPattern pPattern, bool pHasSubscribedChildren) { mCache = pCache; mPattern = pPattern; mHasSubscribedChildren = pHasSubscribedChildren; }
public cRenameCommandHook(cMailboxCache pCache, cMailboxCacheItem pItem, cMailboxName pMailboxName) { mCache = pCache ?? throw new ArgumentNullException(nameof(pCache)); mItem = pItem; // may be null if we are renaming the inbox mMailboxName = pMailboxName ?? throw new ArgumentNullException(nameof(pMailboxName)); }
public cMailboxCacheItem(cCallbackSynchroniser pSynchroniser, cMailboxCache pMailboxCache, string pEncodedMailboxPath) { mSynchroniser = pSynchroniser ?? throw new ArgumentNullException(nameof(pSynchroniser)); mMailboxCache = pMailboxCache ?? throw new ArgumentNullException(nameof(pMailboxCache)); mEncodedMailboxPath = pEncodedMailboxPath ?? throw new ArgumentNullException(nameof(pEncodedMailboxPath)); }
public cCreateCommandHook(cMailboxCache pCache, cMailboxName pMailboxName) { mCache = pCache ?? throw new ArgumentNullException(nameof(pCache)); mMailboxName = pMailboxName ?? throw new ArgumentNullException(nameof(pMailboxName)); }