refactor(IAuthClientHandler): umbenannt in IListenHandler
This commit is contained in:
parent
9d609dd5ac
commit
27c2c0b4cb
@ -1,6 +1,6 @@
|
||||
namespace DigitalData.Auth.Abstractions;
|
||||
|
||||
public interface IAuthClient : IAuthClientHandler, ISenderHandler
|
||||
public interface IAuthClient : IListenHandler, ISenderHandler
|
||||
{
|
||||
bool IsConnected { get; }
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
namespace DigitalData.Auth.Abstractions;
|
||||
|
||||
public interface IAuthClientHandler
|
||||
public interface IListenHandler
|
||||
{
|
||||
Task ReceiveMessageAsync(string user, string message);
|
||||
}
|
||||
@ -3,7 +3,7 @@ using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace DigitalData.Auth.API.Hubs;
|
||||
|
||||
public class AuthHub : Hub<IAuthClientHandler>, ISenderHandler
|
||||
public class AuthHub : Hub<IListenHandler>, ISenderHandler
|
||||
{
|
||||
public async Task SendMessageAsync(string user, string message)
|
||||
=> await Clients.All.ReceiveMessageAsync(user, message);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user