Support piping on unix

or at least trying


Former-commit-id: eb9bc9807a
This commit is contained in:
Malte Rosenbjerg 2020-05-09 17:53:49 +02:00
parent c6fbda042b
commit c4e067f5b5

View file

@ -10,7 +10,10 @@ static class PipeHelpers
public static string GetPipePath(string pipeName)
{
return $@"\\.\pipe\{pipeName}";
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
return $@"\\.\pipe\{pipeName}";
else
return $"unix:/tmp/CoreFxPipe_{pipeName}"; // dotnet uses unix sockets on unix, for more see https://github.com/dotnet/runtime/issues/24390
}
}
}