Example #1
0
            private static string OrchestrationContextToString(DurableOrchestrationContext arg)
            {
                var history = JArray.FromObject(arg.History);
                var input   = arg.GetInputAsJson();

                var contextObject = new JObject(
                    new JProperty("history", history),
                    new JProperty("input", input));

                return(contextObject.ToString());
            }
Example #2
0
            private static string OrchestrationContextToString(DurableOrchestrationContext arg)
            {
                var history = JArray.FromObject(arg.History);
                var input   = arg.GetInputAsJson();

                var contextObject = new JObject(
                    new JProperty("history", history),
                    new JProperty("input", input),
                    new JProperty("instanceId", arg.InstanceId),
                    new JProperty("isReplaying", arg.IsReplaying),
                    new JProperty("parentInstanceId", arg.ParentInstanceId));

                return(contextObject.ToString());
            }