Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 8bc17f7

Browse files
committed
[MSBuild] Use delegate instead of Func for start process handler
Using a delegate makes it clearer what the arguments for the method are.
1 parent 8afe4d2 commit 8bc17f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildProcessService.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ namespace MonoDevelop.Projects.MSBuild
3434
{
3535
public static class MSBuildProcessService
3636
{
37+
public delegate ProcessWrapper StartProcessCallback (string command, string arguments, string workingDirectory, TextWriter outWriter, TextWriter errorWriter, EventHandler exited);
38+
3739
/// <summary>
3840
/// Allows the MSBuild process start to be intercepted and monitored.
3941
/// </summary>
40-
public static Func<string, string, string, TextWriter, TextWriter, EventHandler, ProcessWrapper>
41-
StartProcessHandler { get; set; } = Runtime.ProcessService.StartProcess;
42+
public static StartProcessCallback StartProcessHandler { get; set; } = Runtime.ProcessService.StartProcess;
4243

4344
public static ProcessWrapper StartMSBuild (string arguments, string workingDirectory, TextWriter outWriter, TextWriter errorWriter, EventHandler exited)
4445
{

0 commit comments

Comments
 (0)