From 5c5900a113a6e4ee71783cc41c167b2da2a0c1c7 Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Wed, 12 Jun 2019 19:39:23 -0700 Subject: [PATCH] Changed remote control request log entry. --- Remotely_Server/Services/RCBrowserSocketHub.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Remotely_Server/Services/RCBrowserSocketHub.cs b/Remotely_Server/Services/RCBrowserSocketHub.cs index a3bf6b30..bd503a1e 100644 --- a/Remotely_Server/Services/RCBrowserSocketHub.cs +++ b/Remotely_Server/Services/RCBrowserSocketHub.cs @@ -155,15 +155,17 @@ namespace Remotely_Server.Services screenCasterID = RCDeviceSocketHub.AttendedSessionList[screenCasterID]; } + DataService.WriteEvent(new EventLog() { EventType = EventTypes.Info, TimeStamp = DateTime.Now, - Message = $"Remote control session requested by {requesterName}. " + + Message = $"Remote control session requested. " + $"Connection ID: {Context.ConnectionId}. User ID: {Context.UserIdentifier}. " + - $"Screen Caster ID: {screenCasterID}." + - $"Mode: {((RemoteControlMode)remoteControlMode).ToString()}" + + $"Screen Caster ID: {screenCasterID}. " + + $"Mode: {((RemoteControlMode)remoteControlMode).ToString()}. " + $"Login ID (if logged in): {Context?.User?.Identity?.Name}. " + + $"Rquester Name (if specified): {requesterName}. " + $"Requester IP Address: " + Context?.GetHttpContext()?.Connection?.RemoteIpAddress?.ToString() });