tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Utils
SignalR
IHubConnectionMapper.cs
Go to the documentation of this file.
1
using
System.Threading;
2
using
System.Threading.Tasks;
3
4
using
Microsoft.AspNetCore.SignalR;
5
6
using
Tgstation.Server.Host.Models
;
7
using
Tgstation.Server.Host.Security
;
8
9
namespace
Tgstation.Server.Host.Utils.SignalR
10
{
16
interface
IHubConnectionMapper
<THub, THubMethods>
17
where THub :
ConnectionMappingHub
<THub, THubMethods>
18
where THubMethods : class
19
{
27
ValueTask
UserConnected
(
IAuthenticationContext
authenticationContext, THub hub, CancellationToken cancellationToken);
28
33
void
UserDisconnected
(
string
connectionId);
34
}
35
}
Tgstation.Server.Host.Utils.SignalR.ConnectionMappingHub
Base class for Hub<T>s that want to map their connection IDs to Models.PermissionSets.
Definition
ConnectionMappingHub.cs:20
Tgstation.Server.Host.Security.IAuthenticationContext
For creating and accessing authentication contexts.
Definition
IAuthenticationContext.cs:12
Tgstation.Server.Host.Utils.SignalR.IHubConnectionMapper
Handles mapping connection IDs to Users for a given THub .
Definition
IHubConnectionMapper.cs:19
Tgstation.Server.Host.Utils.SignalR.IHubConnectionMapper.UserConnected
ValueTask UserConnected(IAuthenticationContext authenticationContext, THub hub, CancellationToken cancellationToken)
To be called when a hub connection is made.
Tgstation.Server.Host.Utils.SignalR.IHubConnectionMapper.UserDisconnected
void UserDisconnected(string connectionId)
To be called when a hub connection is terminated.
Tgstation.Server.Host.Models
Definition
ChatBot.cs:9
Tgstation.Server.Host.Security
Definition
AuthenticationContext.cs:8
Tgstation.Server.Host.Utils.SignalR
Definition
ComprehensiveHubContext.cs:15
Generated by
1.9.8