mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
22 lines
417 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|