C# 클래스 NATS.Client.Msg

A NATS message is an object encapsulating a subject, optional reply payload, and subscription information, sent or received by teh client application.
파일 보기 프로젝트 열기: nats-io/csnats 1 사용 예제들

공개 메소드들

메소드 설명
AssignData ( byte data ) : void

Assigns the data of the message. This is a direct assignment, to avoid expensive copy operations. A change to the passed byte array will be changed in the message.

The application is responsible for the data integrity in the message.

Msg ( ) : System

Creates an empty message.

Msg ( string subject ) : System

Creates a message with a subject and no payload.

Msg ( string subject, byte data ) : System

Creates a message with a subject and data.

Msg ( string subject, string reply, byte data ) : System

Creates a message with a subject, reply, and data.

ToString ( ) : string

Generates a string representation of the messages.

비공개 메소드들

메소드 설명
Msg ( MsgArg arg, Subscription s, byte payload, long length ) : System
init ( string subject, string reply, byte data ) : void

메소드 상세

AssignData() 공개 메소드

Assigns the data of the message. This is a direct assignment, to avoid expensive copy operations. A change to the passed byte array will be changed in the message.
The application is responsible for the data integrity in the message.
public AssignData ( byte data ) : void
data byte a bytes buffer of data.
리턴 void

Msg() 공개 메소드

Creates an empty message.
public Msg ( ) : System
리턴 System

Msg() 공개 메소드

Creates a message with a subject and no payload.
public Msg ( string subject ) : System
subject string Subject of the message, required.
리턴 System

Msg() 공개 메소드

Creates a message with a subject and data.
public Msg ( string subject, byte data ) : System
subject string Subject of the message, required.
data byte Message payload
리턴 System

Msg() 공개 메소드

Creates a message with a subject, reply, and data.
public Msg ( string subject, string reply, byte data ) : System
subject string Subject of the message, required.
reply string Reply subject, can be null.
data byte Message payload
리턴 System

ToString() 공개 메소드

Generates a string representation of the messages.
public ToString ( ) : string
리턴 string