|
Dreamine.Communication.Core 1.0.2
Dreamine.Communication.Core 통신 기능과 관련 API를 제공합니다.
|

Public 멤버 함수 | |
| Task | WriteFrameAsync (Stream stream, byte[] payload, CancellationToken cancellationToken=default) |
| Task< byte[]?> | ReadFrameAsync (Stream stream, CancellationToken cancellationToken=default) |
바이트 스트림에서 완전한 메시지 프레임을 읽고 쓰는 계약입니다.
IMessageFrameCodec.cs 파일의 15 번째 라인에서 정의되었습니다.
| Task< byte[]?> Dreamine.Communication.Core.Framing.IMessageFrameCodec.ReadFrameAsync | ( | Stream | stream, |
| CancellationToken | cancellationToken = default ) |
스트림에서 하나의 완전한 메시지 프레임을 비동기적으로 읽습니다.
| stream | 프레임을 읽을 읽기 가능한 스트림입니다. |
| cancellationToken | 비동기 읽기 작업의 취소 요청을 감시하는 토큰입니다. |
null입니다.| ArgumentNullException | stream 이 null인 경우 발생할 수 있습니다. |
| OperationCanceledException | 작업 취소가 요청된 경우 발생할 수 있습니다. |
Dreamine.Communication.Core.Framing.DelimiterMessageFrameCodec, Dreamine.Communication.Core.Framing.LengthPrefixedMessageFrameCodec, Dreamine.Communication.Core.Framing.RawAvailableMessageFrameCodec에서 구현되었습니다.
| Task Dreamine.Communication.Core.Framing.IMessageFrameCodec.WriteFrameAsync | ( | Stream | stream, |
| byte[] | payload, | ||
| CancellationToken | cancellationToken = default ) |
하나의 메시지 페이로드를 프레임 형식으로 스트림에 비동기 기록합니다.
| stream | 프레임을 기록할 쓰기 가능한 스트림입니다. |
| payload | 프레임에 포함할 메시지 데이터입니다. |
| cancellationToken | 비동기 쓰기 작업의 취소 요청을 감시하는 토큰입니다. |
| ArgumentNullException | stream 또는 payload 가 null인 경우 발생할 수 있습니다. |
| OperationCanceledException | 작업 취소가 요청된 경우 발생할 수 있습니다. |
Dreamine.Communication.Core.Framing.DelimiterMessageFrameCodec, Dreamine.Communication.Core.Framing.LengthPrefixedMessageFrameCodec, Dreamine.Communication.Core.Framing.RawAvailableMessageFrameCodec에서 구현되었습니다.