Пример #1
0
        public override byte[] Solve(byte[] partialData, TimeSpan timeout)
        {
            State = TaskSolverState.Solving;
            MultiplyProblemData problemData = MultiplyProblemData.Deserialize(partialData);

            //nic nie trzeba tu robic
            State = TaskSolverState.Idle;
            OnProblemSolvingFinished(this);
            return(new MultiplySolutionData(problemData.Multiplier).Serialize());
        }
Пример #2
0
 public MultiplyTaskSolver(byte[] problemData)
     : base(problemData)
 {
     mData = MultiplyProblemData.Deserialize(problemData);
 }