12 lines
310 B
C#
12 lines
310 B
C#
|
|
using Newtonsoft.Json;
|
|||
|
|
using Newtonsoft.Json.Linq;
|
|||
|
|
|
|||
|
|
namespace SWP.Core.Telemetry;
|
|||
|
|
|
|||
|
|
public static class TelemetryExtensions
|
|||
|
|
{
|
|||
|
|
public static Dictionary<string, string> Format(this object obj)
|
|||
|
|
{
|
|||
|
|
return new Dictionary<string, string> { { "Object", JObject.FromObject(obj).ToString() } };
|
|||
|
|
}
|
|||
|
|
}
|