Skip to content

Commit e6b7119

Browse files
committed
added debug line
1 parent 6567e61 commit e6b7119

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Synapse.Core/Handlers/EchoHandler.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ public EchoHandlerResult(HandlerStartInfo hsi, string config)
4646
Parameters = hsi.Parameters;
4747
RunAs = hsi.RunAs;
4848
Config = config;
49+
CurrentPrincipal = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
4950
}
5051

5152
public string Config { get; internal set; }
53+
public string CurrentPrincipal { get; internal set; }
5254

5355
public override string ToString()
5456
{
@@ -60,6 +62,7 @@ public override string ToString()
6062
s.AppendFormat( "RequestNumber: {0}\r\n", RequestNumber );
6163
s.AppendFormat( "ParentExitData: {0}\r\n", ParentExitData );
6264
s.AppendFormat( "RunAs: {0}\r\n", RunAs );
65+
s.AppendLine( $"CurrentPrincipal:{CurrentPrincipal}");
6366
s.AppendLine( "Config:" );
6467
s.AppendLine( Config );
6568
s.AppendLine( "Parameters:" );

0 commit comments

Comments
 (0)