public void Add(cSASLAuthentication pSASLAuthentication) { if (mSASLAuthentication != null) { throw new InvalidOperationException(); } mSASLAuthentication = pSASLAuthentication ?? throw new ArgumentNullException(nameof(pSASLAuthentication)); }
public cCommand(sCommandDetails pCommandDetails) { Tag = pCommandDetails.Tag ?? throw new ArgumentOutOfRangeException(nameof(pCommandDetails)); mParts = pCommandDetails.Parts ?? throw new ArgumentOutOfRangeException(nameof(pCommandDetails)); mDisposables = pCommandDetails.Disposables ?? throw new ArgumentOutOfRangeException(nameof(pCommandDetails)); mSASLAuthentication = mDisposables.SASLAuthentication; UIDValidity = pCommandDetails.UIDValidity; Hook = pCommandDetails.Hook ?? throw new ArgumentOutOfRangeException(nameof(pCommandDetails)); }
public cCommandHookAuthenticate(cCommandPipeline pPipeline, cSASLAuthentication pAuthentication, bool pHandleReferral) { mPipeline = pPipeline; mAuthentication = pAuthentication; }