public static string SayHello([ActivityTrigger] string name, ILogger log)
        {
            log.LogInformation($"Saying hello to {name}.");

            var result = new SelfRefClass()
            {
                Desc      = "desc",
                Name      = name,
                OtherProp = "something else",
                Parent    = new SelfRefClass
                {
                    Desc      = "desc 2",
                    Name      = name + " Parent",
                    OtherProp = "something",
                }
            };

            result.Parent.Parent = result;

            string json = JsonConvert.SerializeObject(result, new JsonSerializerSettings()
            {
                TypeNameHandling           = TypeNameHandling.Objects,
                PreserveReferencesHandling = PreserveReferencesHandling.Objects,
                ReferenceLoopHandling      = ReferenceLoopHandling.Serialize
            });

            return(json);
        }
        public static SelfRefClass SayHello([ActivityTrigger] string name, ILogger log)
        {
            log.LogInformation($"Saying hello to {name}.");

            var result = new SelfRefClass()
            {
                Desc      = "desc",
                Name      = name,
                OtherProp = "something else",
                Parent    = new SelfRefClass
                {
                    Desc      = "desc 2",
                    Name      = name + " Parent",
                    OtherProp = "something",
                }
            };

            result.Parent.Parent = result;

            return(result);
        }