Files
Radicade/Server/Notifications/NotifyHubInvocationFilter.cs
T
2026-10-16 23:33:13 -07:00

22 lines
417 B
C#

using Microsoft.AspNetCore.SignalR;
namespace RadicadeServer.API.Notifications
{
public sealed class NotifyHubInvocationFilter : IHubFilter
{
public async ValueTask<object?> InvokeMethodAsync(
HubInvocationContext invocationContext,
Func<HubInvocationContext, ValueTask<object?>> next)
{
try
{
return await next(invocationContext);
}
catch (Exception)
{
return null;
}
}
}
}