=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===

This commit is contained in:
julian
2026-06-28 02:50:05 -07:00
parent a19fb90902
commit 586f02a2ca
654 changed files with 5260 additions and 0 deletions
@@ -12,6 +12,7 @@ namespace adas_core.Infrastructure.Services;
/// <summary>
/// Represents a service that implements the <see cref="IPublisherService"/> contract, providing the concrete implementation of the publishing operations defined by the interface.
/// </summary>
/// <!-- aidoc:v1 sig=2b6fa6f -->
public class PublisherService : IPublisherService
{
private readonly ILogger<PublisherService> _logger;
@@ -90,6 +91,7 @@ public class PublisherService : IPublisherService
/// <param name="msg">The message payload to send to the queue.</param>
/// <param name="queueName">The name of the target queue to which the message will be sent.</param>
/// <returns><c>true</c> if the message was sent successfully; otherwise, <c>false</c>.</returns>
/// <!-- aidoc:v1 sig=4a81ef7 body=ccacd65 -->
public async Task<bool> SendMessage(string msg, string queueName)
{
try
@@ -121,6 +123,7 @@ public class PublisherService : IPublisherService
/// <param name="obj">The object to serialize and send to the queue.</param>
/// <param name="queueName">The name of the destination queue.</param>
/// <returns>A task that resolves to <c>true</c> if the message was sent successfully; otherwise, <c>false</c>.</returns>
/// <!-- aidoc:v1 sig=9bcf9cc body=8c96ff0 -->
public async Task<bool> SendMessage(object obj, string queueName)
{
var json = JsonConvert.SerializeObject(obj);
@@ -133,6 +136,7 @@ public class PublisherService : IPublisherService
/// <param name="obj">The message object expected to be a <c>Message&lt;Error&gt;</c>. If it is not, the method returns <c>false</c> without sending anything.</param>
/// <param name="queueName">The name of the queue to which the error message body will be sent. The queue is created if it does not already exist.</param>
/// <returns>A <see cref="Task{Boolean}"/> that resolves to <c>true</c> when the error message is successfully sent, and <c>false</c> when the bus is null, the object is not a <c>Message&lt;Error&gt;</c>, or an exception is raised while sending.</returns>
/// <!-- aidoc:v1 sig=ad36809 body=f9fde02 -->
public async Task<bool> SendMessageError(object obj, string queueName)
{
try