Exemple #1
0
 public sCommandDetails(cCommandTag pTag, ReadOnlyCollection <cCommandPart> pParts, cCommandDisposables pDisposables, uint?pUIDValidity, cCommandHook pHook)
 {
     Tag         = pTag ?? throw new ArgumentNullException(nameof(pTag));
     Parts       = pParts ?? throw new ArgumentNullException(nameof(pParts));
     Disposables = pDisposables ?? throw new ArgumentNullException(nameof(pDisposables));
     UIDValidity = pUIDValidity;
     Hook        = pHook ?? throw new ArgumentNullException(nameof(pHook));
 }
Exemple #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));
 }