This commit is contained in:
Zeeshaun
2026-04-27 15:27:15 +00:00
parent 6291ac76dd
commit 8b528fa00b
@@ -0,0 +1,19 @@
using System.Collections.Generic;
using LCU.Library.Internal.ApiResponse.Services;
namespace LCU.API.Internal.Operations.IncentiveApi.Services;
public static class SafeQueueReturnResponse
{
public static async Task TryQueueResponse<TRequest>(TRequest request, bool success, List<string> messageStack, string context)
{
try
{
await QueueReturnResponse.QueueResponse(request, success, messageStack ?? new List<string>());
}
catch (Exception exception)
{
Log.Error(exception, "Failed to queue return response for {Context}.", context);
}
}
}