Example #1
0
        public void DeleteWorkflow(WFInfo wf)
        {
            DateTime startTime = DateTime.Now;

            try
            {
                _workflowService.DeleteWorkflow(wf);

                _requestTracer.TraceServiceRequestAsync(
                    this, Convert.ToInt64((DateTime.Now - startTime).TotalMilliseconds), new Object[] { wf }, null, 1, "");
            }
            catch (Exception exc)
            {
                string errMsg = string.Format("Error delete workflow with <{0}> id. Err: {1}", wf.Id, exc.ToString());
                Logger.Instance.Error(errMsg, LoggerConsts.WorkflowDeleteWorkflow, exc);

                _requestTracer.TraceServiceRequestAsync(
                    this, Convert.ToInt64((DateTime.Now - startTime).TotalMilliseconds), new Object[] { wf }, null, 0, exc.ToString());

                throw;
            }
        }