Skip to content

Commit 1350f7a

Browse files
authored
Merge pull request #666 from emoacht/develop
Revert method name and edit comments
2 parents 5dd5818 + 8b91da5 commit 1350f7a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Source/StartupAgency/PipeHolder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ public PipeHolder(string name, Func<string[], Task<string>> handleRequestAsync)
3939
/// <param name="args">Arguments being forwarded to another instance</param>
4040
/// <returns>
4141
/// <para>created: True if no other instance exists and this instance successfully creates the semaphore</para>
42-
/// <para>started: True if this instance successfully starts the named pipe server</para>
43-
/// <para>response: Response from another instance if that instance exists and returns an response</para>
42+
/// <para>started: True if this instance successfully starts a named pipe server</para>
43+
/// <para>response: Response from another instance if that instance exists and returns a response</para>
4444
/// </returns>
45-
public (bool created, bool started, string response) CreateAndStart(string[] args)
45+
public (bool created, bool started, string response) Create(string[] args)
4646
{
4747
_semaphore = new Semaphore(1, 1, SemaphoreName, out bool createdNew);
4848
if (createdNew)
@@ -80,7 +80,7 @@ public PipeHolder(string name, Func<string[], Task<string>> handleRequestAsync)
8080
}
8181

8282
/// <summary>
83-
/// Releases <see cref="System.Threading.Semaphore"/> to stop named pipes.
83+
/// Releases <see cref="System.Threading.Semaphore"/> and stops named pipes.
8484
/// </summary>
8585
public void Release()
8686
{

Source/StartupAgency/StartupAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class StartupAgent : IDisposable
3838
throw new ArgumentNullException(nameof(startupTaskId));
3939

4040
_holder = new PipeHolder(name, null);
41-
var (created, started, response) = _holder.CreateAndStart(forwardingArguments?.ToArray());
41+
var (created, started, response) = _holder.Create(forwardingArguments?.ToArray());
4242
if (!created)
4343
return (success: false, response);
4444

0 commit comments

Comments
 (0)