public virtual void End() { var f = new AppFlowEvent(); f.FlowProps = this.FlowProps; //Pass on any added before call to End FlowUtility.SaveFlow(f, this); }
public static void ExceptionOnly(this AppFlow flow, System.Exception ex) { var f = new AppFlowEvent(); f.FlowProps.Add("Message", ex.Message); f.FlowProps.Add("StackTrace", ex.ToString()); FlowUtility.SaveFlow(f, flow); }
public static void ExceptionAndResult(this AppFlow flow, System.Exception ex, ref AppsClient.AppsResult result) { var f = new AppFlowEvent(); f.FlowProps.Add("Message", ex.Message); f.FlowProps.Add("StackTrace", ex.ToString()); f.FlowProps.Add("Result", Newtonsoft.Json.JsonConvert.SerializeObject(result)); FlowUtility.SaveFlow(f, flow); }
public virtual void End() { var f = new AppFlowEvent(); FlowUtility.SaveFlow(f, this); }