refactor: IAuthListenHandler und IAuthSenderHandler aktualisiert, um Issuer und Audiance anstelle von Name zu verwenden
This commit is contained in:
@@ -5,6 +5,6 @@ namespace DigitalData.Auth.API.Hubs;
|
||||
|
||||
public class AuthHub : Hub<IAuthListenHandler>, IAuthSenderHandler
|
||||
{
|
||||
public async Task SendKeyAsync(string name, string value)
|
||||
=> await Clients.All.ReceiveKeyAsync(name, value);
|
||||
public async Task SendPublicKeyAsync(string issuer, string audience, string value)
|
||||
=> await Clients.All.ReceivePublicKeyAsync(issuer, audience, value);
|
||||
}
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
public interface INotifier
|
||||
{
|
||||
Task UpdateKeyAsync(string name, string value);
|
||||
Task UpdateKeyAsync(string issuer, string audience, string value);
|
||||
}
|
||||
|
||||
@@ -14,8 +14,8 @@ public class Notifier : INotifier
|
||||
_hubContext = hubContext;
|
||||
}
|
||||
|
||||
public async Task UpdateKeyAsync(string name, string value)
|
||||
public async Task UpdateKeyAsync(string issuer, string audience, string value)
|
||||
{
|
||||
await _hubContext.Clients.All.ReceiveKeyAsync(name, value);
|
||||
await _hubContext.Clients.All.ReceivePublicKeyAsync(issuer, audience, value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user