13 instantiations of NamedPipeServerStream
csc (1)
src\Compilers\Shared\NamedPipeUtil.cs (1)
189new NamedPipeServerStream(
Microsoft.Build (1)
NodeEndpointOutOfProcBase.cs (1)
245_pipeServer = new NamedPipeServerStream(
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Shared\NamedPipeUtil.cs (1)
189new NamedPipeServerStream(
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.Service.cs (1)
226var serverStream = new NamedPipeServerStream(pipeName, PipeDirection.InOut, NamedPipeServerStream.MaxAllowedServerInstances, PipeTransmissionMode.Byte, PipeOptions.Asynchronous);
Microsoft.CodeAnalysis.LanguageServer (1)
Program.cs (1)
149var pipeServer = new NamedPipeServerStream(serverPipeName,
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
src\Compilers\Shared\NamedPipeUtil.cs (1)
189new NamedPipeServerStream(
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Shared\NamedPipeUtil.cs (1)
117new NamedPipeServerStream(
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceHelpers.vb (1)
82pipeServer = New NamedPipeServerStream(
MSBuild (1)
NodeEndpointOutOfProcBase.cs (1)
230_pipeServer = new NamedPipeServerStream(
MSBuildTaskHost (1)
NodeEndpointOutOfProcBase.cs (1)
230_pipeServer = new NamedPipeServerStream(
Replay (1)
src\Compilers\Shared\NamedPipeUtil.cs (1)
117new NamedPipeServerStream(
vbc (1)
src\Compilers\Shared\NamedPipeUtil.cs (1)
117new NamedPipeServerStream(
VBCSCompiler (1)
src\Compilers\Shared\NamedPipeUtil.cs (1)
189new NamedPipeServerStream(
89 references to NamedPipeServerStream
csc (4)
src\Compilers\Shared\NamedPipeUtil.cs (4)
54internal static bool CheckClientElevationMatches(NamedPipeServerStream pipeStream) 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 90NamedPipeServerStream.MaxAllowedServerInstances, 181private static NamedPipeServerStream CreateServer(
Microsoft.AspNetCore.Connections.Abstractions (3)
Features\IConnectionNamedPipeFeature.cs (3)
9/// Provides access to the connection's underlying <see cref="NamedPipeServerStream"/>. 14/// Gets the underlying <see cref="NamedPipeServerStream"/>. 16NamedPipeServerStream NamedPipe { get; }
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (19)
CreateNamedPipeServerStreamContext.cs (1)
10/// Provides information about an endpoint when creating a <see cref="NamedPipeServerStream"/>.
Internal\NamedPipeConnection.cs (3)
19private readonly NamedPipeServerStream _stream; 36NamedPipeServerStream stream, 61public NamedPipeServerStream NamedPipe => _stream;
Internal\NamedPipeConnectionListener.cs (8)
23private readonly ObjectPool<NamedPipeServerStream> _namedPipeServerStreamPool; 61internal void ReturnStream(NamedPipeServerStream stream) 78var initialStream = _namedPipeServerStreamPool.Get(); 101private async Task StartAsync(NamedPipeServerStream nextStream) 107var stream = nextStream; 183private sealed class NamedPipeServerStreamPoolPolicy : IPooledObjectPolicy<NamedPipeServerStream> 195public NamedPipeServerStream Create() 220public bool Return(NamedPipeServerStream obj) => !obj.IsConnected;
NamedPipeTransportOptions.cs (7)
73/// A function used to create a new <see cref="NamedPipeServerStream"/> to listen with. If 79public Func<CreateNamedPipeServerStreamContext, NamedPipeServerStream> CreateNamedPipeServerStream { get; set; } = CreateDefaultNamedPipeServerStream; 82/// Creates a default instance of <see cref="NamedPipeServerStream"/> for the given 88/// A <see cref="NamedPipeServerStream"/> instance. 90public static NamedPipeServerStream CreateDefaultNamedPipeServerStream(CreateNamedPipeServerStreamContext context) 99NamedPipeServerStream.MaxAllowedServerInstances, 111NamedPipeServerStream.MaxAllowedServerInstances,
Microsoft.Build (2)
NodeEndpointOutOfProcBase.cs (2)
59private NamedPipeServerStream _pipeServer; 349NamedPipeServerStream localPipeServer = _pipeServer;
Microsoft.Build.Tasks.CodeAnalysis (4)
src\Compilers\Shared\NamedPipeUtil.cs (4)
54internal static bool CheckClientElevationMatches(NamedPipeServerStream pipeStream) 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 90NamedPipeServerStream.MaxAllowedServerInstances, 181private static NamedPipeServerStream CreateServer(
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (2)
226var serverStream = new NamedPipeServerStream(pipeName, PipeDirection.InOut, NamedPipeServerStream.MaxAllowedServerInstances, PipeTransmissionMode.Byte, PipeOptions.Asynchronous);
Microsoft.CodeAnalysis.LanguageServer (1)
Program.cs (1)
149var pipeServer = new NamedPipeServerStream(serverPipeName,
Microsoft.CodeAnalysis.Workspaces.MSBuild (4)
src\Compilers\Shared\NamedPipeUtil.cs (4)
54internal static bool CheckClientElevationMatches(NamedPipeServerStream pipeStream) 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 90NamedPipeServerStream.MaxAllowedServerInstances, 181private static NamedPipeServerStream CreateServer(
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
Program.cs (1)
52var pipeServer = NamedPipeUtil.CreateServer(pipeName, PipeDirection.InOut);
src\Compilers\Shared\NamedPipeUtil.cs (4)
54internal static bool CheckClientElevationMatches(NamedPipeServerStream pipeStream) 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 90NamedPipeServerStream.MaxAllowedServerInstances, 109private static NamedPipeServerStream CreateServer(
Microsoft.VisualBasic.Forms (4)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceHelpers.vb (3)
16pipeServer As NamedPipeServerStream, 79<Out> ByRef pipeServer As NamedPipeServerStream) As Boolean 96pipeServer As NamedPipeServerStream,
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
1059Dim pipeServer As NamedPipeServerStream = Nothing
Microsoft.VisualBasic.Forms.Tests (4)
System\Windows\Forms\SingleInstanceHelpersTests.vb (4)
20Dim pipeServer As NamedPipeServerStream = Nothing 33Dim pipeServer As NamedPipeServerStream = Nothing 36Dim pipeServer1 As NamedPipeServerStream = Nothing 45Dim pipeServer As NamedPipeServerStream = Nothing
Microsoft.VisualBasic.Tests (12)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (12)
41private bool TryCreatePipeServer(string pipeName, out NamedPipeServerStream pipeServer) 46private Task WaitForClientConnectionsAsync(NamedPipeServerStream pipeServer, Action<string[]> callback, CancellationToken cancellationToken = default) 78List<NamedPipeServerStream> pipeServers = []; 84Assert.True(TryCreatePipeServer(GetUniqueName(), out var pipeServer)); 91foreach (var pipeServer in pipeServers) 108if (TryCreatePipeServer(pipeName, out var pipeServer)) 129Assert.True(TryCreatePipeServer(pipeName, out var pipeServer)); 150Assert.True(TryCreatePipeServer(pipeName, out var pipeServer)); 170Assert.True(TryCreatePipeServer(pipeName, out var pipeServer)); 211Assert.True(TryCreatePipeServer(pipeName, out var pipeServer)); 225Assert.True(TryCreatePipeServer(pipeName, out var pipeServer)); 244Assert.True(TryCreatePipeServer(pipeName, out var pipeServer));
MSBuild (2)
NodeEndpointOutOfProcBase.cs (2)
59private NamedPipeServerStream _pipeServer; 349NamedPipeServerStream localPipeServer = _pipeServer;
MSBuildTaskHost (2)
NodeEndpointOutOfProcBase.cs (2)
59private NamedPipeServerStream _pipeServer; 349NamedPipeServerStream localPipeServer = _pipeServer;
netstandard (1)
netstandard.cs (1)
953[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Pipes.NamedPipeServerStream))]
Replay (4)
src\Compilers\Shared\NamedPipeUtil.cs (4)
54internal static bool CheckClientElevationMatches(NamedPipeServerStream pipeStream) 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 90NamedPipeServerStream.MaxAllowedServerInstances, 109private static NamedPipeServerStream CreateServer(
System.Core (1)
System.Core.cs (1)
108[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Pipes.NamedPipeServerStream))]
System.IO.Pipes.AccessControl (1)
artifacts\obj\System.IO.Pipes.AccessControl\Debug\net10.0\System.IO.Pipes.AccessControl.notsupported.cs (1)
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); }
vbc (4)
src\Compilers\Shared\NamedPipeUtil.cs (4)
54internal static bool CheckClientElevationMatches(NamedPipeServerStream pipeStream) 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 90NamedPipeServerStream.MaxAllowedServerInstances, 109private static NamedPipeServerStream CreateServer(
VBCSCompiler (8)
src\Compilers\Server\VBCSCompiler\NamedPipeClientConnection.cs (2)
23public NamedPipeServerStream Stream { get; } 29internal NamedPipeClientConnection(NamedPipeServerStream stream, ICompilerServerLogger logger)
src\Compilers\Server\VBCSCompiler\NamedPipeClientConnectionHost.cs (2)
164/// <see cref="NamedPipeServerStream"/> object. Throws on any connection error. 175NamedPipeServerStream? pipeStream = null;
src\Compilers\Shared\NamedPipeUtil.cs (4)
54internal static bool CheckClientElevationMatches(NamedPipeServerStream pipeStream) 84internal static NamedPipeServerStream CreateServer(string pipeName, PipeDirection? pipeDirection = null) 90NamedPipeServerStream.MaxAllowedServerInstances, 181private static NamedPipeServerStream CreateServer(
VBCSCompiler.UnitTests (2)
NamedPipeTestUtil.cs (2)
27var sharedServerFullName = typeof(NamedPipeServerStream).FullName + "+SharedServer"; 28var sharedServerType = typeof(NamedPipeServerStream).Assembly.GetType(sharedServerFullName);