コード例 #1
0
 private void ValidateExtractTrackingDataParameters()
 {
     if (string.IsNullOrWhiteSpace(OutputFileName))
     {
         throw new ApplicationException("Output file name is empty or null. Please fill output file name.");
     }
     if (!OutputFileName.ToLower().EndsWith(".csv") && !OutputFileName.ToLower().EndsWith(".zip"))
     {
         throw new ApplicationException("Invalid file extension. Only csv or zip allowed.");
     }
 }
コード例 #2
0
 private void ValidateExtractDataExtensionParameters()
 {
     if (string.IsNullOrWhiteSpace(DECustomerKey))
     {
         throw new ApplicationException("Data extension customer key is empty or null. Please fill data extension customer key.");
     }
     if (string.IsNullOrWhiteSpace(OutputFileName))
     {
         throw new ApplicationException("Output file name is empty or null. Please fill output file name.");
     }
     if (!OutputFileName.ToLower().EndsWith(".zip"))
     {
         throw new ApplicationException("Invalid file extension. Only zip extension allowed, as the return data will be in individual files.");
     }
 }