public static string SerializeObject <T>(T result)
        {
            try
            {
                return(InnerSerializeObjectToJson(result));
            }
            catch (OutOfMemoryException)
            {
                MemoryHelper.CleanMemory();

                Task.Delay(TimeSpan.FromMilliseconds(100)).GetAwaiter().GetResult();
                return(InnerSerializeObjectToJson(result));
            }
            //catch (Exception e)
            //{
            //    Console.WriteLine(e);
            //    return InnerSerializeObjectToJson(result);
            //}
        }