Replace MSAL and custom cookie auth with Microsoft.Identity.EntityFramework Also some UI redesign to accommodate different login experience.
20 lines
440 B
C#
20 lines
440 B
C#
using Microsoft.AspNetCore.SignalR;
|
|
|
|
namespace Shogi.Api.Application;
|
|
|
|
/// <summary>
|
|
/// Used to receive signals from connected clients.
|
|
/// </summary>
|
|
public class GameHub : Hub
|
|
{
|
|
public Task Subscribe(string sessionId)
|
|
{
|
|
return this.Groups.AddToGroupAsync(this.Context.ConnectionId, sessionId);
|
|
}
|
|
|
|
public Task Unsubscribe(string sessionId)
|
|
{
|
|
return this.Groups.RemoveFromGroupAsync(this.Context.ConnectionId, sessionId);
|
|
}
|
|
}
|