17 instantiations of NamedPipeClientStream
csc (2)
src\Compilers\Shared\BuildClient.cs (1)
323npcs = new NamedPipeClientStream(".", testPipeName, PipeDirection.InOut);
src\Compilers\Shared\NamedPipeUtil.cs (1)
46=> new NamedPipeClientStream(serverName, GetPipeNameOrPath(pipeName), direction, options | CurrentUserOption);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
NamedPipesTransportBenchmark.cs (1)
125var clientStream = new NamedPipeClientStream(
Microsoft.Build (2)
BackEnd\Client\MSBuildClient.cs (1)
142_nodeStream = new NamedPipeClientStream(
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
449NamedPipeClientStream nodeStream = new NamedPipeClientStream(
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Shared\NamedPipeUtil.cs (1)
46=> new NamedPipeClientStream(serverName, GetPipeNameOrPath(pipeName), direction, options | CurrentUserOption);
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.LazyRemoteService.cs (1)
185var clientStream = new NamedPipeClientStream(".", pipeName, PipeDirection.InOut, PipeOptions.Asynchronous);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
src\Compilers\Shared\NamedPipeUtil.cs (1)
46=> new NamedPipeClientStream(serverName, GetPipeNameOrPath(pipeName), direction, options | CurrentUserOption);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Shared\NamedPipeUtil.cs (1)
46=> new NamedPipeClientStream(serverName, GetPipeNameOrPath(pipeName), direction, options | CurrentUserOption);
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceHelpers.vb (1)
67Using pipeClient As New NamedPipeClientStream(
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (1)
361NamedPipeClientStream pipeClient = new(".", pipeName, PipeDirection.Out);
Replay (1)
src\Compilers\Shared\NamedPipeUtil.cs (1)
46=> new NamedPipeClientStream(serverName, GetPipeNameOrPath(pipeName), direction, options | CurrentUserOption);
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
180namedPipeClient = new NamedPipeClientStream(".", resolvedAddress, PipeDirection.InOut, PipeOptions.Asynchronous, TokenImpersonationLevel.Anonymous, HandleInheritability.None);
vbc (2)
src\Compilers\Shared\BuildClient.cs (1)
323npcs = new NamedPipeClientStream(".", testPipeName, PipeDirection.InOut);
src\Compilers\Shared\NamedPipeUtil.cs (1)
46=> new NamedPipeClientStream(serverName, GetPipeNameOrPath(pipeName), direction, options | CurrentUserOption);
VBCSCompiler (2)
src\Compilers\Shared\BuildClient.cs (1)
323npcs = new NamedPipeClientStream(".", testPipeName, PipeDirection.InOut);
src\Compilers\Shared\NamedPipeUtil.cs (1)
46=> new NamedPipeClientStream(serverName, GetPipeNameOrPath(pipeName), direction, options | CurrentUserOption);
89 references to NamedPipeClientStream
csc (11)
src\Compilers\Shared\BuildServerConnection.cs (9)
187using var pipe = await tryConnectToServerAsync(pipeName, timeoutOverride, logger, tryCreateServerFunc, cancellationToken).ConfigureAwait(false); 200static Task<NamedPipeClientStream?> tryConnectToServerAsync( 226return Task.FromResult<NamedPipeClientStream?>(null); 237return Task.FromResult<NamedPipeClientStream?>(null); 257return Task.FromResult<NamedPipeClientStream?>(null); 278NamedPipeClientStream pipeStream, 368/// Attempt to connect to the server and return a null <see cref="NamedPipeClientStream"/> if connection 371internal static async Task<NamedPipeClientStream?> TryConnectToServerAsync( 377NamedPipeClientStream? pipeStream = null;
src\Compilers\Shared\NamedPipeUtil.cs (2)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 132internal static bool CheckPipeConnectionOwnership(NamedPipeClientStream pipeStream)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
NamedPipesTransportBenchmark.cs (4)
67var clientStream = CreateClientStream(_pipeName); 105var namedPipeClient = CreateClientStream(_pipeName); 123private static NamedPipeClientStream CreateClientStream(string pipeName) 125var clientStream = new NamedPipeClientStream(
Microsoft.Build (3)
BackEnd\Client\MSBuildClient.cs (1)
80private NamedPipeClientStream _nodeStream = null!;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
449NamedPipeClientStream nodeStream = new NamedPipeClientStream( 488internal static void ConnectToPipeStream(NamedPipeClientStream nodeStream, string pipeName, Handshake handshake, int timeout)
Microsoft.Build.Tasks.CodeAnalysis (11)
src\Compilers\Shared\BuildServerConnection.cs (9)
187using var pipe = await tryConnectToServerAsync(pipeName, timeoutOverride, logger, tryCreateServerFunc, cancellationToken).ConfigureAwait(false); 200static Task<NamedPipeClientStream?> tryConnectToServerAsync( 226return Task.FromResult<NamedPipeClientStream?>(null); 237return Task.FromResult<NamedPipeClientStream?>(null); 257return Task.FromResult<NamedPipeClientStream?>(null); 278NamedPipeClientStream pipeStream, 368/// Attempt to connect to the server and return a null <see cref="NamedPipeClientStream"/> if connection 371internal static async Task<NamedPipeClientStream?> TryConnectToServerAsync( 377NamedPipeClientStream? pipeStream = null;
src\Compilers\Shared\NamedPipeUtil.cs (2)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 132internal static bool CheckPipeConnectionOwnership(NamedPipeClientStream pipeStream)
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.LazyRemoteService.cs (1)
185var clientStream = new NamedPipeClientStream(".", pipeName, PipeDirection.InOut, PipeOptions.Asynchronous);
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\BuildHostProcessManager.cs (1)
385var pipeClient = NamedPipeUtil.CreateClient(".", pipeName, PipeDirection.InOut, PipeOptions.Asynchronous);
src\Compilers\Shared\NamedPipeUtil.cs (2)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 132internal static bool CheckPipeConnectionOwnership(NamedPipeClientStream pipeStream)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Shared\NamedPipeUtil.cs (2)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 175internal static bool CheckPipeConnectionOwnership(NamedPipeClientStream pipeStream) => true;
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceHelpers.vb (1)
47pipeClient As NamedPipeClientStream,
Microsoft.VisualBasic.Tests (7)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (7)
264var pipeClient = CreateClientConnection(pipeName, SendTimeout); 309using var pipeClient = CreateClientConnection(pipeName, SendTimeout); 314var pipeClient = CreateClientConnection(pipeName, SendTimeout); 332NamedPipeClientStream pipeClient = null; 356using var _ = CreateClientConnection(pipeName, SendTimeout); 359private static NamedPipeClientStream CreateClientConnection(string pipeName, int timeout) 361NamedPipeClientStream pipeClient = new(".", pipeName, PipeDirection.Out);
netstandard (1)
netstandard.cs (1)
952[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Pipes.NamedPipeClientStream))]
Replay (11)
src\Compilers\Shared\BuildServerConnection.cs (9)
187using var pipe = await tryConnectToServerAsync(pipeName, timeoutOverride, logger, tryCreateServerFunc, cancellationToken).ConfigureAwait(false); 200static Task<NamedPipeClientStream?> tryConnectToServerAsync( 226return Task.FromResult<NamedPipeClientStream?>(null); 237return Task.FromResult<NamedPipeClientStream?>(null); 257return Task.FromResult<NamedPipeClientStream?>(null); 278NamedPipeClientStream pipeStream, 368/// Attempt to connect to the server and return a null <see cref="NamedPipeClientStream"/> if connection 371internal static async Task<NamedPipeClientStream?> TryConnectToServerAsync( 377NamedPipeClientStream? pipeStream = null;
src\Compilers\Shared\NamedPipeUtil.cs (2)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 175internal static bool CheckPipeConnectionOwnership(NamedPipeClientStream pipeStream) => true;
System.Core (1)
System.Core.cs (1)
107[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Pipes.NamedPipeClientStream))]
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeClientStream.cs (1)
196var tuple = ((NamedPipeClientStream stream, int timeout, CancellationToken cancellationToken, int startTime))state!;
System.ServiceModel.NetNamedPipe (3)
System\ServiceModel\Channels\PipeConnection.cs (2)
17private readonly NamedPipeClientStream _pipe; 39public PipeConnection(NamedPipeClientStream namedPipeClient, int connectionBufferSize)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
177NamedPipeClientStream namedPipeClient;
vbc (11)
src\Compilers\Shared\BuildServerConnection.cs (9)
187using var pipe = await tryConnectToServerAsync(pipeName, timeoutOverride, logger, tryCreateServerFunc, cancellationToken).ConfigureAwait(false); 200static Task<NamedPipeClientStream?> tryConnectToServerAsync( 226return Task.FromResult<NamedPipeClientStream?>(null); 237return Task.FromResult<NamedPipeClientStream?>(null); 257return Task.FromResult<NamedPipeClientStream?>(null); 278NamedPipeClientStream pipeStream, 368/// Attempt to connect to the server and return a null <see cref="NamedPipeClientStream"/> if connection 371internal static async Task<NamedPipeClientStream?> TryConnectToServerAsync( 377NamedPipeClientStream? pipeStream = null;
src\Compilers\Shared\NamedPipeUtil.cs (2)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 175internal static bool CheckPipeConnectionOwnership(NamedPipeClientStream pipeStream) => true;
VBCSCompiler (11)
src\Compilers\Shared\BuildServerConnection.cs (9)
187using var pipe = await tryConnectToServerAsync(pipeName, timeoutOverride, logger, tryCreateServerFunc, cancellationToken).ConfigureAwait(false); 200static Task<NamedPipeClientStream?> tryConnectToServerAsync( 226return Task.FromResult<NamedPipeClientStream?>(null); 237return Task.FromResult<NamedPipeClientStream?>(null); 257return Task.FromResult<NamedPipeClientStream?>(null); 278NamedPipeClientStream pipeStream, 368/// Attempt to connect to the server and return a null <see cref="NamedPipeClientStream"/> if connection 371internal static async Task<NamedPipeClientStream?> TryConnectToServerAsync( 377NamedPipeClientStream? pipeStream = null;
src\Compilers\Shared\NamedPipeUtil.cs (2)
45internal static NamedPipeClientStream CreateClient(string serverName, string pipeName, PipeDirection direction, PipeOptions options) 132internal static bool CheckPipeConnectionOwnership(NamedPipeClientStream pipeStream)
VBCSCompiler.UnitTests (7)
NamedPipeClientConnectionHostTests.cs (7)
36private Task<NamedPipeClientStream?> ConnectAsync(CancellationToken cancellationToken = default) => BuildServerConnection.TryConnectToServerAsync( 53using var clientStream = await ConnectAsync(); 78using var clientStream = await ConnectAsync(); 93var list = new List<Task<NamedPipeClientStream?>>(); 123var list = new List<Task<NamedPipeClientStream?>>(); 136using var stream = await streamTask; 151using var client = await ConnectAsync();