예제 #1
0
 /// <summary>
 /// Current state is start. Start NCOA
 /// </summary>
 /// <param name="sparkDataConfig">The spark data configuration.</param>
 private void StatusStart(SparkDataConfig sparkDataConfig)
 {
     if (sparkDataConfig.NcoaSettings.IsAckPrice && sparkDataConfig.NcoaSettings.IsAcceptedTerms)
     {
         var ncoa = new Ncoa();
         ncoa.Start(sparkDataConfig);
     }
     else
     {
         if (!sparkDataConfig.NcoaSettings.IsAckPrice && !sparkDataConfig.NcoaSettings.IsAcceptedTerms)
         {
             throw new Exception("The NCOA terms of service have not been accepted.");
         }
         else if (!sparkDataConfig.NcoaSettings.IsAcceptedTerms)
         {
             throw new Exception("The NCOA terms of service have not been accepted.");
         }
         else
         {
             throw new Exception("The price of the NCOA service has not been acknowledged.");
         }
     }
 }
예제 #2
0
        /// <summary>
        /// Current State is Failed. If recurring is enabled, retry.
        /// </summary>
        /// <param name="sparkDataConfig">The spark data configuration.</param>
        private void StatusFailed(SparkDataConfig sparkDataConfig)
        {
            var ncoa = new Ncoa();

            ncoa.Start(sparkDataConfig);
        }