Index: Ringtoets/Revetment/src/Ringtoets.Revetment.Service/WaveConditionsCalculationServiceBase.cs =================================================================== diff -u -r9e877195a92839a9f121a3b4cac77712b63b589b -r4098e7338585cd9047636c465ffcb213c12bf987 --- Ringtoets/Revetment/src/Ringtoets.Revetment.Service/WaveConditionsCalculationServiceBase.cs (.../WaveConditionsCalculationServiceBase.cs) (revision 9e877195a92839a9f121a3b4cac77712b63b589b) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.Service/WaveConditionsCalculationServiceBase.cs (.../WaveConditionsCalculationServiceBase.cs) (revision 4098e7338585cd9047636c465ffcb213c12bf987) @@ -48,13 +48,16 @@ public abstract class WaveConditionsCalculationServiceBase { private static readonly ILog log = LogManager.GetLogger(typeof(WaveConditionsCalculationServiceBase)); - - public OnProgressChanged OnProgress; protected int TotalWaterLevelCalculations; private int currentStep = 1; private IWaveConditionsCosineCalculator calculator; /// + /// Fired when the calculation progress changed. + /// + public event OnProgressChanged OnProgressChanged; + + /// /// Cancels any currently running wave conditions calculation. /// public void Cancel() @@ -239,7 +242,7 @@ private void NotifyProgress(RoundedDouble waterLevel, int currentStepNumber, int totalStepsNumber) { string message = string.Format(Resources.WaveConditionsCalculationService_OnRun_Calculate_for_waterlevel_0_, waterLevel); - OnProgress?.Invoke(message, currentStepNumber, totalStepsNumber); + OnProgressChanged?.Invoke(message, currentStepNumber, totalStepsNumber); } ///