Interface IUserConnectionManager
A manager that tracks connection ids for users.
Namespace: Umbraco.Cms.Core.ServerEvents
Assembly: Umbraco.Core.dll
Syntax
public interface IUserConnectionManager
Methods
View SourceAddConnection(Guid, String)
Add a connection to a user.
Declaration
void AddConnection(Guid userKey, string connectionId)
Parameters
Type | Name | Description |
---|---|---|
Guid | userKey | The key of the user to add the connection to. |
System. |
connectionId | Connection id to add. |
GetConnections(Guid)
Get all connections held by a user.
Declaration
ISet<string> GetConnections(Guid userKey)
Parameters
Type | Name | Description |
---|---|---|
Guid | userKey | The key of the user to get connections for. |
Returns
Type | Description |
---|---|
ISet<System. |
The users connections. |
RemoveConnection(Guid, String)
Removes a connection from a user.
Declaration
void RemoveConnection(Guid userKey, string connectionId)
Parameters
Type | Name | Description |
---|---|---|
Guid | userKey | The user key to remove the connection from. |
System. |
connectionId | The connection id to remove |