1- using Flow . Launcher . Infrastructure ;
2- using Flow . Launcher . Infrastructure . Logger ;
1+ using Flow . Launcher . Infrastructure . Logger ;
32using System ;
4- using System . Collections . Generic ;
53using System . Diagnostics ;
6- using System . Linq ;
74using System . Management ;
85
96namespace Flow . Launcher . Plugin . ProcessKiller
@@ -18,9 +15,7 @@ internal class PortDetail
1815 public string Path { get ; set ; }
1916 public override string ToString ( )
2017 {
21- return string . Format ( @" Process Name: {0} ,Process ID: {1} ,
22- Port: {2} ,\nPath : {3}" , ProcessName ,
23- ProcessID , Port , Path ) ;
18+ return $@ " Process Name: { ProcessName } , Process ID: { ProcessID } , Port: { Port } , Path : { Path } ";
2419 }
2520
2621 }
@@ -128,7 +123,7 @@ private static Tuple<string, string> GetProcessNameAndCommandLineArgs(int proces
128123 // interested in first result.
129124 foreach ( ManagementObject item in results )
130125 {
131- result = Tuple . Create < string , string > ( Convert . ToString ( item [ "Name" ] ) ,
126+ result = Tuple . Create ( Convert . ToString ( item [ "Name" ] ) ,
132127 Convert . ToString ( item [ "ExecutablePath" ] ) ) ;
133128 break ;
134129
0 commit comments