示例#1
0
 public void Add(cSASLAuthentication pSASLAuthentication)
 {
     if (mSASLAuthentication != null)
     {
         throw new InvalidOperationException();
     }
     mSASLAuthentication = pSASLAuthentication ?? throw new ArgumentNullException(nameof(pSASLAuthentication));
 }
示例#2
0
 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));
 }
示例#3
0
 public cCommandHookAuthenticate(cCommandPipeline pPipeline, cSASLAuthentication pAuthentication, bool pHandleReferral)
 {
     mPipeline       = pPipeline;
     mAuthentication = pAuthentication;
 }