Пример #1
0
        public virtual void End()
        {
            var f = new AppFlowEvent();

            f.FlowProps = this.FlowProps; //Pass on any added before call to End
            FlowUtility.SaveFlow(f, this);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        public virtual void End()
        {
            var f = new AppFlowEvent();

            FlowUtility.SaveFlow(f, this);
        }