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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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