public CalculationEngineState GetCalculationState(Domain.Model.Calculations.CalculationId calculationId) { var client = new CalculationEngineRef.CalculationEngineServiceClient(); var progress = WcfClientHelper.CallMethod((c, id) => c.CheckStatus(id.Id), client, calculationId, errorAdapter); var msgList = progress.MessageList.ToList(); return(new CalculationEngineState { MessageList = msgList, Percent = progress.Percent, StateName = progress.StateName }); }
public void PauseCalculation(Domain.Model.Calculations.CalculationId calculationId) { var client = new CalculationEngineRef.CalculationEngineServiceClient(); WcfClientHelper.CallMethod((c, id) => c.Pause(id.Id), client, calculationId, errorAdapter); }