/// <summary> /// Performs basic sanity check to ensure that all required fields are filled. /// </summary> internal void LoadTimeValidate() { // DeliveryKey was already checked by CpixDocument or we would not have gotten here. if (DocumentKey == null) { throw new NotSupportedException("DeliveryData/DocumentKey element is missing."); } if (MacMethod == null) { throw new NotSupportedException("DeliveryData/MacMethod element is missing."); } DocumentKey.LoadTimeValidate(); MacMethod.LoadTimeValidate(); }