rama creada apartir de master en j

This commit is contained in:
jrojas
2026-06-26 10:29:23 +02:00
parent 319fd3dfb0
commit c1517fda87
2810 changed files with 1927392 additions and 25392 deletions
+16 -9
View File
@@ -4,6 +4,9 @@ using Newtonsoft.Json;
namespace adas_core.Domain.Models.SignalR;
/// <summary>
/// Represents a message, typically used for communication or data transfer between components.
/// </summary>
public class Message
{
public long IdMessage { get; set; }
@@ -23,16 +26,20 @@ public class Message
public SubscriptionEnum.Type Operation { get; set; }
/// <summary>
/// Returns a JSON representation of the current object, falling back to the default <see cref="object.ToString"/> implementation if serialization fails.
/// </summary>
/// <returns>A JSON-formatted string describing the object, or the result of the base <see cref="object.ToString"/> method if serialization throws an exception.</returns>
public override string? ToString()
{
try
{
return JsonConvert.SerializeObject(this, Formatting.None,
new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore });
try
{
return JsonConvert.SerializeObject(this, Formatting.None,
new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore });
}
catch
{
return base.ToString();
}
}
catch
{
return base.ToString();
}
}
}