public override async Task OnDisconnectedAsync(Exception exception) { if (Context.User.Identity.IsAuthenticated) { OrganizationConnectionList.Remove(Context.ConnectionId, out _); } await RCDeviceHub.Clients.Client(ScreenCasterID).SendAsync("ViewerDisconnected", Context.ConnectionId); if (AppConfig.RecordRemoteControlSessions) { RCSessionRecorder.StopProcessing(Context.ConnectionId); } }
public override Task OnDisconnectedAsync(Exception exception) { if (ScreenCasterID != null) { RCDeviceHubContext.Clients.Client(ScreenCasterID).SendAsync("ViewerDisconnected", Context.ConnectionId); } if (AppConfig.RecordRemoteControlSessions) { RCSessionRecorder.StopProcessing(Context.ConnectionId); } return(base.OnDisconnectedAsync(exception)); }