.NET 8 Update (#2496)
This commit is contained in:
parent
6d4d2d4a7f
commit
b838fd53e5
75 changed files with 590 additions and 405 deletions
|
@ -21,13 +21,11 @@ public class EventHub : IEventHub
|
|||
{
|
||||
private readonly IHubContext<MessageHub> _messageHub;
|
||||
private readonly IPresenceTracker _presenceTracker;
|
||||
private readonly IUnitOfWork _unitOfWork;
|
||||
|
||||
public EventHub(IHubContext<MessageHub> messageHub, IPresenceTracker presenceTracker, IUnitOfWork unitOfWork)
|
||||
public EventHub(IHubContext<MessageHub> messageHub, IPresenceTracker presenceTracker)
|
||||
{
|
||||
_messageHub = messageHub;
|
||||
_presenceTracker = presenceTracker;
|
||||
_unitOfWork = unitOfWork;
|
||||
|
||||
// TODO: When sending a message, queue the message up and on re-connect, reply the queued messages. Queue messages expire on a rolling basis (rolling array)
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ using Microsoft.AspNetCore.Authorization;
|
|||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace API.SignalR;
|
||||
#nullable enable
|
||||
|
||||
public interface ILogHub : Serilog.Sinks.AspNetCore.SignalR.Interfaces.IHub
|
||||
{
|
||||
|
|
|
@ -6,6 +6,7 @@ using Microsoft.AspNetCore.Authorization;
|
|||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace API.SignalR;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// Generic hub for sending messages to UI
|
||||
|
|
|
@ -5,6 +5,7 @@ using System.Threading.Tasks;
|
|||
using API.Data;
|
||||
|
||||
namespace API.SignalR.Presence;
|
||||
#nullable enable
|
||||
|
||||
public interface IPresenceTracker
|
||||
{
|
||||
|
@ -22,7 +23,6 @@ internal class ConnectionDetail
|
|||
public bool IsAdmin { get; set; }
|
||||
}
|
||||
|
||||
// TODO: This can respond to UserRoleUpdate events to handle online users
|
||||
/// <summary>
|
||||
/// This is a singleton service for tracking what users have a SignalR connection and their difference connectionIds
|
||||
/// </summary>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
|
||||
namespace API.SignalR;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// Payload for SignalR messages to Frontend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue