C# 클래스 Microsoft.AspNetCore.NodeServices.HostingModels.VirtualConnections.VirtualConnectionClient

Wraps an underlying physical read/write stream (e.g., named pipes, domain sockets, or TCP sockets) and exposes an API for making 'virtual connections', which act as independent read/write streams. Traffic over these virtual connections is multiplexed over the underlying physical stream. This is useful for fast stream-based inter-process communication because it avoids the overhead of opening a new physical connection each time a new communication channel is needed.
상속: IDisposable
파일 보기 프로젝트 열기: aspnet/JavaScriptServices 1 사용 예제들

공개 메소드들

메소드 설명
CloseInnerStream ( long innerStreamId, bool isAlreadyClosedRemotely ) : void
Dispose ( ) : void
OpenVirtualConnection ( ) : Stream
VirtualConnectionClient ( Stream underlyingTransport ) : System
WriteAsync ( long innerStreamId, byte data, int offset, int count, CancellationToken cancellationToken ) : Task

비공개 메소드들

메소드 설명
CloseAllActiveStreams ( ) : void
ProcessNextFrameAsync ( ) : Task
ReadExactLength ( int lengthToRead ) : Task
RunReadLoop ( ) : void
ThrowIfReadLoopFailed ( ) : void

메소드 상세

CloseInnerStream() 공개 메소드

public CloseInnerStream ( long innerStreamId, bool isAlreadyClosedRemotely ) : void
innerStreamId long
isAlreadyClosedRemotely bool
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

OpenVirtualConnection() 공개 메소드

public OpenVirtualConnection ( ) : Stream
리턴 Stream

VirtualConnectionClient() 공개 메소드

public VirtualConnectionClient ( Stream underlyingTransport ) : System
underlyingTransport Stream
리턴 System

WriteAsync() 공개 메소드

public WriteAsync ( long innerStreamId, byte data, int offset, int count, CancellationToken cancellationToken ) : Task
innerStreamId long
data byte
offset int
count int
cancellationToken System.Threading.CancellationToken
리턴 Task