-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add static support for long running processes (#13)
* Add static support for long running programs with manual started confirmations * add fsharp bindings
- Loading branch information
Showing
17 changed files
with
384 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using ProcNet.Std; | ||
|
||
namespace ProcNet; | ||
|
||
public class LongRunningArguments : StartArguments | ||
{ | ||
public LongRunningArguments(string binary, IEnumerable<string> args) : base(binary, args) { } | ||
|
||
public LongRunningArguments(string binary, params string[] args) : base(binary, args) { } | ||
|
||
/// <summary> | ||
/// A handler that will delay return of the <see cref="IDisposable"/> process until startup is confirmed over | ||
/// standard out/error. | ||
/// </summary> | ||
public Func<LineOut, bool> StartedConfirmationHandler { get; set; } | ||
|
||
/// <summary> | ||
/// A helper that sets <see cref="StartArguments.KeepBufferingLines"/> and stops immediately after <see cref="StartedConfirmationHandler"/> | ||
/// indicates the process has started. | ||
/// </summary> | ||
public bool StopBufferingAfterStarted { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.