/// <summary> /// Is called to run custom calculation events defined by app developer. /// </summary> /// <param name="data">The data to perform calculations on</param> public override async Task <bool> RunCalculation(object data) { return(await CalculationHandler.Calculate(data)); }
/// <summary> /// Is called to run custom calculation events defined by app developer when data is read from app /// </summary> /// <param name="instance">Instance that data belongs to</param> /// <param name="dataId">Data id for the data</param> /// <param name="data">The data to perform calculations on</param> public override async Task <bool> RunProcessDataRead(Instance instance, Guid?dataId, object data) { return(await CalculationHandler.Calculate(data)); }