File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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:" ) ;
You can’t perform that action at this time.
0 commit comments