Updating
This commit is contained in:
+19
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user