Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clean some dirty changes used for quick validation.
  • Loading branch information
Paulo Janotti committed Feb 26, 2018
commit 73574ee8983693eccff55ca0fe61f10e97105cbf
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ private void Create(string pipeName, PipeDirection direction, int maxNumberOfSer
// We don't have a good way to enforce maxNumberOfServerInstances across processes; we only factor it in
// for streams created in this process. Between processes, we behave similarly to maxNumberOfServerInstances == 1,
// in that the second process to come along and create a stream will find the pipe already in existence and will fail.
var pipeNameServer = GetPipePath(".", pipeName, IsCurrentUserOnly);
System.Console.WriteLine("PipeServerName: " + pipeNameServer + " IsCurrentUserOnly: " + IsCurrentUserOnly);
_instance = SharedServer.Get(GetPipePath(".", pipeName, IsCurrentUserOnly), maxNumberOfServerInstances);

_direction = direction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static void CreateServer_CurrentUserOnly()
[Fact]
public static void CreateServer_ConnectClient()
{
var name = "test.named.pipe"; // GetUniquePipeName();
var name = GetUniquePipeName();
using (var server = new NamedPipeServerStream(name, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.CurrentUserOnly))
{
using (var client = new NamedPipeClientStream(".", name, PipeDirection.InOut, PipeOptions.CurrentUserOnly))
Expand Down