コード例 #1
0
        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
            });
        }
コード例 #2
0
        public void PauseCalculation(Domain.Model.Calculations.CalculationId calculationId)
        {
            var client = new CalculationEngineRef.CalculationEngineServiceClient();

            WcfClientHelper.CallMethod((c, id) => c.Pause(id.Id), client, calculationId, errorAdapter);
        }