Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1064 from Particular/session-mutex
- Loading branch information
Showing
7 changed files
with
43 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace ServiceInsight.Tests | ||
{ | ||
using System; | ||
using NUnit.Framework; | ||
using ServiceInsight.Startup; | ||
|
||
[TestFixture] | ||
public class PipeNameTests | ||
{ | ||
[Test] | ||
public void Should_return_pipe_name_with_the_current_user_username() | ||
{ | ||
Assert.AreEqual($"ServiceInsight-{Environment.UserName}", PipeName.Value); | ||
} | ||
} | ||
} |
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,15 @@ | ||
namespace ServiceInsight.Startup | ||
{ | ||
using System; | ||
|
||
/// <summary> | ||
/// NamedPipeServerStream pipe name. | ||
/// </summary> | ||
public static class PipeName | ||
{ | ||
/// <summary> | ||
/// "ServiceInsight-username" where username is the Windows currently logged in user username. | ||
/// </summary> | ||
public static string Value { get; } = $"ServiceInsight-{Environment.UserName}"; | ||
} | ||
} |
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