Example #1
0
        public Object ComputeResult(int workOrderId, Dictionary<String, Object> parameters)
        {
            //     if (workList.Count() <= MAX_QUEUE_SIZE) {
                ComputeItem ci = new ComputeItem();

                ci.parameters = parameters;
                ci.workOrderId = workOrderId;

             //       this.workList.Add(ci);

                Object res = ci.GetResult();

             //       this.workList.Remove(ci);

                return res;
               //     } else {
              //      throw new Exception("Max items already queued/in progress.");
               // }
        }
Example #2
0
        public Object ComputeResult(int workOrderId, Dictionary <String, Object> parameters)
        {
            //     if (workList.Count() <= MAX_QUEUE_SIZE) {
            ComputeItem ci = new ComputeItem();

            ci.parameters  = parameters;
            ci.workOrderId = workOrderId;

            //       this.workList.Add(ci);

            Object res = ci.GetResult();

            //       this.workList.Remove(ci);

            return(res);
            //     } else {
            //      throw new Exception("Max items already queued/in progress.");
            // }
        }