feat(Auth.Client): Erstellt, um Client (Consumer) Ereignisse von SignalR zu behandeln.

- Erstellt ClientParams um AuthClient zu konfigurieren.
 - Erstellt ClientEvents, um Ereignisse im Client zu konfigurieren.
This commit is contained in:
Developer 02
2025-01-24 14:51:02 +01:00
parent a2f4fcfbe0
commit bf12c889f3
5 changed files with 56 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
using Microsoft.Extensions.Logging;
namespace DigitalData.Auth.Client
{
public class ClientEvents
{
public Func<string, string, ILogger?, Task> OnMessageReceived { get; set; } = (user, message, logger)
=> Task.Run(
() => logger?.LogInformation("{user}: {message}", user, message)
);
}
}