Ejemplo n.º 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());
            }
Ejemplo n.º 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());
            }