127 references to PipeDirection
csc (7)
src\Compilers\Shared\BuildClient.cs (1)
323npcs = new NamedPipeClientStream(".", testPipeName, PipeDirection.InOut);
src\Compilers\Shared\BuildServerConnection.cs (1)
385pipeStream = NamedPipeUtil.CreateClient(".", pipeName, PipeDirection.InOut, PipeOptions.Asynchronous);
src\Compilers\Shared\NamedPipeUtil.cs (5)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 50/// <see cref="CreateServer(string, PipeDirection?)" /> methods will already guarantee that the identity of the client and server are the 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 89pipeDirection ?? PipeDirection.InOut, 111PipeDirection direction,
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
NamedPipesTransportBenchmark.cs (1)
128direction: PipeDirection.InOut,
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
NamedPipeTransportOptions.cs (2)
98PipeDirection.InOut, 110PipeDirection.InOut,
Microsoft.Build (3)
BackEnd\Client\MSBuildClient.cs (1)
145PipeDirection.InOut,
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
452PipeDirection.InOut,
NodeEndpointOutOfProcBase.cs (1)
232PipeDirection.InOut,
Microsoft.Build.Tasks.CodeAnalysis (6)
src\Compilers\Shared\BuildServerConnection.cs (1)
385pipeStream = NamedPipeUtil.CreateClient(".", pipeName, PipeDirection.InOut, PipeOptions.Asynchronous);
src\Compilers\Shared\NamedPipeUtil.cs (5)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 50/// <see cref="CreateServer(string, PipeDirection?)" /> methods will already guarantee that the identity of the client and server are the 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 89pipeDirection ?? PipeDirection.InOut, 183PipeDirection direction,
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.LazyRemoteService.cs (1)
185var clientStream = new NamedPipeClientStream(".", pipeName, PipeDirection.InOut, PipeOptions.Asynchronous);
Interactive\Core\InteractiveHost.Service.cs (1)
224var serverStream = new NamedPipeServerStream(pipeName, PipeDirection.InOut, NamedPipeServerStream.MaxAllowedServerInstances, PipeTransmissionMode.Byte, PipeOptions.Asynchronous);
Microsoft.CodeAnalysis.LanguageServer (1)
Program.cs (1)
133PipeDirection.InOut,
Microsoft.CodeAnalysis.Workspaces.MSBuild (6)
MSBuild\BuildHostProcessManager.cs (1)
385var pipeClient = NamedPipeUtil.CreateClient(".", pipeName, PipeDirection.InOut, PipeOptions.Asynchronous);
src\Compilers\Shared\NamedPipeUtil.cs (5)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 50/// <see cref="CreateServer(string, PipeDirection?)" /> methods will already guarantee that the identity of the client and server are the 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 89pipeDirection ?? PipeDirection.InOut, 183PipeDirection direction,
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
Program.cs (1)
52var pipeServer = NamedPipeUtil.CreateServer(pipeName, PipeDirection.InOut);
src\Compilers\Shared\NamedPipeUtil.cs (5)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 50/// <see cref="CreateServer(string, PipeDirection?)" /> methods will already guarantee that the identity of the client and server are the 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 89pipeDirection ?? PipeDirection.InOut, 183PipeDirection direction,
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceHelpers.vb (2)
70direction:=PipeDirection.Out, 87direction:=PipeDirection.In,
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (1)
361NamedPipeClientStream pipeClient = new(".", pipeName, PipeDirection.Out);
MSBuild (1)
NodeEndpointOutOfProcBase.cs (1)
232PipeDirection.InOut,
MSBuildTaskHost (1)
NodeEndpointOutOfProcBase.cs (1)
232PipeDirection.InOut,
netstandard (1)
netstandard.cs (1)
954[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Pipes.PipeDirection))]
PrepareTests (1)
TestDiscovery.cs (1)
91using (var pipeServer = new AnonymousPipeServerStream(PipeDirection.Out, HandleInheritability.Inheritable))
Replay (6)
src\Compilers\Shared\BuildServerConnection.cs (1)
385pipeStream = NamedPipeUtil.CreateClient(".", pipeName, PipeDirection.InOut, PipeOptions.Asynchronous);
src\Compilers\Shared\NamedPipeUtil.cs (5)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 50/// <see cref="CreateServer(string, PipeDirection?)" /> methods will already guarantee that the identity of the client and server are the 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 89pipeDirection ?? PipeDirection.InOut, 111PipeDirection direction,
System.Core (1)
System.Core.cs (1)
112[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Pipes.PipeDirection))]
System.Diagnostics.Process (4)
System\Diagnostics\Process.Unix.cs (4)
469_standardInput = new StreamWriter(OpenStream(stdinFd, PipeDirection.Out), 476_standardOutput = new StreamReader(OpenStream(stdoutFd, PipeDirection.In), 482_standardError = new StreamReader(OpenStream(stderrFd, PipeDirection.In), 846private static AnonymousPipeClientStream OpenStream(int fd, PipeDirection direction)
System.IO.Pipes (57)
System\IO\Pipes\AnonymousPipeClientStream.cs (7)
16: this(PipeDirection.In, pipeHandleAsString) 20public AnonymousPipeClientStream(PipeDirection direction, string pipeHandleAsString) 23if (direction == PipeDirection.InOut) 47public AnonymousPipeClientStream(PipeDirection direction, SafePipeHandle safePipeHandle) 50if (direction == PipeDirection.InOut) 63private void Init(PipeDirection direction, SafePipeHandle safePipeHandle) 65Debug.Assert(direction != PipeDirection.InOut, "anonymous pipes are unidirectional, caller should have verified before calling Init");
System\IO\Pipes\AnonymousPipeServerStream.cs (7)
18: this(PipeDirection.Out, HandleInheritability.None, 0) 22public AnonymousPipeServerStream(PipeDirection direction) 27public AnonymousPipeServerStream(PipeDirection direction, HandleInheritability inheritability) 33public AnonymousPipeServerStream(PipeDirection direction, SafePipeHandle serverSafePipeHandle, SafePipeHandle clientSafePipeHandle) 36if (direction == PipeDirection.InOut) 63public AnonymousPipeServerStream(PipeDirection direction, HandleInheritability inheritability, int bufferSize) 66if (direction == PipeDirection.InOut)
System\IO\Pipes\AnonymousPipeServerStream.Unix.cs (3)
15private void Create(PipeDirection direction, HandleInheritability inheritability, int bufferSize) 17Debug.Assert(direction != PipeDirection.InOut, "Anonymous pipe direction shouldn't be InOut"); 23if (direction == PipeDirection.In)
System\IO\Pipes\NamedPipeClientStream.cs (8)
26private readonly PipeDirection _direction; 31: this(".", pipeName, PipeDirection.InOut, PipeOptions.None, TokenImpersonationLevel.None, HandleInheritability.None) 36: this(serverName, pipeName, PipeDirection.InOut, PipeOptions.None, TokenImpersonationLevel.None, HandleInheritability.None) 40public NamedPipeClientStream(string serverName, string pipeName, PipeDirection direction) 45public NamedPipeClientStream(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 50public NamedPipeClientStream(string serverName, string pipeName, PipeDirection direction, 56public NamedPipeClientStream(string serverName, string pipeName, PipeDirection direction, 92public NamedPipeClientStream(PipeDirection direction, bool isAsync, bool isConnected, SafePipeHandle safePipeHandle)
System\IO\Pipes\NamedPipeClientStream.Unix.cs (2)
25: base(PipeDirection.InOut, 0) 30private static int AccessRightsFromDirection(PipeDirection _) => 0;
System\IO\Pipes\NamedPipeServerStream.cs (11)
19: this(pipeName, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.None, 0, 0, HandleInheritability.None) 23public NamedPipeServerStream(string pipeName, PipeDirection direction) 28public NamedPipeServerStream(string pipeName, PipeDirection direction, int maxNumberOfServerInstances) 33public NamedPipeServerStream(string pipeName, PipeDirection direction, int maxNumberOfServerInstances, PipeTransmissionMode transmissionMode) 38public NamedPipeServerStream(string pipeName, PipeDirection direction, int maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options) 43public NamedPipeServerStream(string pipeName, PipeDirection direction, int maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options, int inBufferSize, int outBufferSize) 72PipeDirection direction, 87PipeDirection direction, 96if (direction < PipeDirection.In || direction > PipeDirection.InOut) 133public NamedPipeServerStream(PipeDirection direction, bool isAsync, bool isConnected, SafePipeHandle safePipeHandle)
System\IO\Pipes\NamedPipeServerStream.Unix.cs (4)
17private PipeDirection _direction; 24private void Create(string pipeName, PipeDirection direction, int maxNumberOfServerInstances, 29Debug.Assert(direction >= PipeDirection.In && direction <= PipeDirection.InOut, "invalid pipe direction");
System\IO\Pipes\PipeStream.cs (12)
27private PipeDirection _pipeDirection; 31protected PipeStream(PipeDirection direction, int bufferSize) 33if (direction < PipeDirection.In || direction > PipeDirection.InOut) 42protected PipeStream(PipeDirection direction, PipeTransmissionMode transmissionMode, int outBufferSize) 44if (direction < PipeDirection.In || direction > PipeDirection.InOut) 57private void Init(PipeDirection direction, PipeTransmissionMode transmissionMode, uint outBufferSize) 59Debug.Assert(direction >= PipeDirection.In && direction <= PipeDirection.InOut, "invalid pipe direction"); 69if ((_pipeDirection & PipeDirection.In) != 0) 73if ((_pipeDirection & PipeDirection.Out) != 0)
System\IO\Pipes\PipeStream.Unix.cs (3)
490PipeDirection direction, int inBufferSize, int outBufferSize, HandleInheritability inheritability) 511case PipeDirection.In: 514case PipeDirection.Out:
System.IO.Pipes.AccessControl (2)
artifacts\obj\System.IO.Pipes.AccessControl\Debug\net10.0\System.IO.Pipes.AccessControl.notsupported.cs (2)
11public static System.IO.Pipes.AnonymousPipeServerStream Create(System.IO.Pipes.PipeDirection direction, System.IO.HandleInheritability inheritability, int bufferSize, System.IO.Pipes.PipeSecurity? pipeSecurity) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 15public static System.IO.Pipes.NamedPipeServerStream Create(string pipeName, System.IO.Pipes.PipeDirection direction, int maxNumberOfServerInstances, System.IO.Pipes.PipeTransmissionMode transmissionMode, System.IO.Pipes.PipeOptions options, int inBufferSize, int outBufferSize, System.IO.Pipes.PipeSecurity? pipeSecurity, System.IO.HandleInheritability inheritability = System.IO.HandleInheritability.None, System.IO.Pipes.PipeAccessRights additionalAccessRights = default) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); }
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
180namedPipeClient = new NamedPipeClientStream(".", resolvedAddress, PipeDirection.InOut, PipeOptions.Asynchronous, TokenImpersonationLevel.Anonymous, HandleInheritability.None);
TestDiscoveryWorker (1)
Program.cs (1)
29using var pipeClient = new AnonymousPipeClientStream(PipeDirection.In, args[0]);
vbc (7)
src\Compilers\Shared\BuildClient.cs (1)
323npcs = new NamedPipeClientStream(".", testPipeName, PipeDirection.InOut);
src\Compilers\Shared\BuildServerConnection.cs (1)
385pipeStream = NamedPipeUtil.CreateClient(".", pipeName, PipeDirection.InOut, PipeOptions.Asynchronous);
src\Compilers\Shared\NamedPipeUtil.cs (5)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 50/// <see cref="CreateServer(string, PipeDirection?)" /> methods will already guarantee that the identity of the client and server are the 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 89pipeDirection ?? PipeDirection.InOut, 183PipeDirection direction,
VBCSCompiler (7)
src\Compilers\Shared\BuildClient.cs (1)
323npcs = new NamedPipeClientStream(".", testPipeName, PipeDirection.InOut);
src\Compilers\Shared\BuildServerConnection.cs (1)
385pipeStream = NamedPipeUtil.CreateClient(".", pipeName, PipeDirection.InOut, PipeOptions.Asynchronous);
src\Compilers\Shared\NamedPipeUtil.cs (5)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 50/// <see cref="CreateServer(string, PipeDirection?)" /> methods will already guarantee that the identity of the client and server are the 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 89pipeDirection ?? PipeDirection.InOut, 183PipeDirection direction,