diff --git a/Source/StartupAgency/PipeHolder.cs b/Source/StartupAgency/PipeHolder.cs index 22de274a..9c4783d0 100644 --- a/Source/StartupAgency/PipeHolder.cs +++ b/Source/StartupAgency/PipeHolder.cs @@ -39,10 +39,10 @@ public PipeHolder(string name, Func> handleRequestAsync) /// Arguments being forwarded to another instance /// /// created: True if no other instance exists and this instance successfully creates the semaphore - /// started: True if this instance successfully starts the named pipe server - /// response: Response from another instance if that instance exists and returns an response + /// started: True if this instance successfully starts a named pipe server + /// response: Response from another instance if that instance exists and returns a response /// - public (bool created, bool started, string response) CreateAndStart(string[] args) + public (bool created, bool started, string response) Create(string[] args) { _semaphore = new Semaphore(1, 1, SemaphoreName, out bool createdNew); if (createdNew) @@ -80,7 +80,7 @@ public PipeHolder(string name, Func> handleRequestAsync) } /// - /// Releases to stop named pipes. + /// Releases and stops named pipes. /// public void Release() { diff --git a/Source/StartupAgency/StartupAgent.cs b/Source/StartupAgency/StartupAgent.cs index b9f738a3..d23d9c36 100644 --- a/Source/StartupAgency/StartupAgent.cs +++ b/Source/StartupAgency/StartupAgent.cs @@ -38,7 +38,7 @@ public class StartupAgent : IDisposable throw new ArgumentNullException(nameof(startupTaskId)); _holder = new PipeHolder(name, null); - var (created, started, response) = _holder.CreateAndStart(forwardingArguments?.ToArray()); + var (created, started, response) = _holder.Create(forwardingArguments?.ToArray()); if (!created) return (success: false, response);