File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed 
Flow.Launcher.Core/Plugin Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1- using  System ; 
2- using  System . Diagnostics ; 
1+ using  System . Diagnostics ; 
32using  System . IO ; 
43using  System . Threading ; 
54using  System . Threading . Tasks ; 
@@ -22,18 +21,23 @@ public ExecutablePlugin(string filename)
2221                RedirectStandardOutput  =  true , 
2322                RedirectStandardError  =  true 
2423            } ; 
24+             
25+             // required initialisation for below request calls  
26+             _startInfo . ArgumentList . Add ( string . Empty ) ; 
2527        } 
2628
2729        protected  override  Task < Stream >  RequestAsync ( JsonRPCRequestModel  request ,  CancellationToken  token  =  default ) 
2830        { 
29-             _startInfo . Arguments  =  $ "\" { request } \" "; 
31+             // since this is not static, request strings will build up in ArgumentList if index is not specified 
32+             _startInfo . ArgumentList [ 0 ]  =  request . ToString ( ) ; 
3033            return  ExecuteAsync ( _startInfo ,  token ) ; 
3134        } 
3235
3336        protected  override  string  Request ( JsonRPCRequestModel  rpcRequest ,  CancellationToken  token  =  default ) 
3437        { 
35-             _startInfo . Arguments  =  $ "\" { rpcRequest } \" "; 
38+             // since this is not static, request strings will build up in ArgumentList if index is not specified 
39+             _startInfo . ArgumentList [ 0 ]  =  rpcRequest . ToString ( ) ; 
3640            return  Execute ( _startInfo ) ; 
3741        } 
3842    } 
39- } 
43+ } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments