Example #1
0
        public List <WFInfo> GetAllWorkflows()
        {
            DateTime startTime = DateTime.Now;

            try
            {
                var wfList = _workflowService.GetAllWorkflows();

                _requestTracer.TraceServiceRequestAsync(
                    this, Convert.ToInt64((DateTime.Now - startTime).TotalMilliseconds), null, wfList, 1, "");

                return(wfList);
            }
            catch (Exception exc)
            {
                string errMsg = string.Format("Error get all workflows. Err: {0}", exc.ToString());
                Logger.Instance.Error(errMsg, LoggerConsts.WorkflowCreateWorkflow, exc);

                _requestTracer.TraceServiceRequestAsync(
                    this, Convert.ToInt64((DateTime.Now - startTime).TotalMilliseconds), null, null, 0, exc.ToString());

                throw;
            }
        }