aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Session/SessionManager.cs
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2020-12-15 01:15:54 +0000
committerGitHub <noreply@github.com>2020-12-15 01:15:54 +0000
commit67c480ad53073a660e1485777cde6b2889780faf (patch)
tree0662d81e0fdb1fd036fe7e207e406146b26b3dba /Emby.Server.Implementations/Session/SessionManager.cs
parent0d4aa6bad61a8d7ef74b88a161913c5a64663937 (diff)
parent4f6a585424ac8fc66d1f2d5a7fc71a9e85cd23de (diff)
Merge branch 'master' into PluginDowngrade
Diffstat (limited to 'Emby.Server.Implementations/Session/SessionManager.cs')
-rw-r--r--Emby.Server.Implementations/Session/SessionManager.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs
index b3965fcca..885f65c64 100644
--- a/Emby.Server.Implementations/Session/SessionManager.cs
+++ b/Emby.Server.Implementations/Session/SessionManager.cs
@@ -128,6 +128,9 @@ namespace Emby.Server.Implementations.Session
/// <inheritdoc />
public event EventHandler<SessionEventArgs> SessionActivity;
+ /// <inheritdoc />
+ public event EventHandler<SessionEventArgs> SessionControllerConnected;
+
/// <summary>
/// Gets all connections.
/// </summary>
@@ -313,6 +316,19 @@ namespace Emby.Server.Implementations.Session
}
/// <inheritdoc />
+ public void OnSessionControllerConnected(SessionInfo info)
+ {
+ EventHelper.QueueEventIfNotNull(
+ SessionControllerConnected,
+ this,
+ new SessionEventArgs
+ {
+ SessionInfo = info
+ },
+ _logger);
+ }
+
+ /// <inheritdoc />
public void CloseIfNeeded(SessionInfo session)
{
if (!session.SessionControllers.Any(i => i.IsSessionActive))