Changed remote control request log entry.

This commit is contained in:
Jared Goodwin 2019-06-12 19:39:23 -07:00
parent bc9221e054
commit 5c5900a113

View File

@ -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()
});