Class DataReceivedEventArgs
Fired when data chunk was received over the network.
public sealed record DataReceivedEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<DataReceivedEventArgs>
- Inheritance
-
EventArgsDataReceivedEventArgs
- Implements
-
IEquatable<EventArgs>
- Inherited Members
-
EventArgs.ToString()EventArgs.GetHashCode()EventArgs.Equals(EventArgs)EventArgs.<Clone>$()EventArgs.BiDiEventArgs.AdditionalDataEventArgs.AdditionalMessageData
Constructors
DataReceivedEventArgs(RequestId, MonotonicTime, long, long, string?)
Fired when data chunk was received over the network.
public DataReceivedEventArgs(RequestId RequestId, MonotonicTime Timestamp, long DataLength, long EncodedDataLength, string? Data = null)
Parameters
RequestIdRequestIdRequest identifier.
TimestampMonotonicTimeTimestamp.
DataLengthlongData chunk length.
EncodedDataLengthlongActual bytes received (might be less than dataLength for compressed encodings).
DatastringData that was received. (Encoded as a base64 string when passed over JSON)
Properties
Data
Data that was received. (Encoded as a base64 string when passed over JSON)
public string? Data { get; init; }
Property Value
DataLength
Data chunk length.
public long DataLength { get; init; }
Property Value
EncodedDataLength
Actual bytes received (might be less than dataLength for compressed encodings).
public long EncodedDataLength { get; init; }
Property Value
RequestId
Request identifier.
public RequestId RequestId { get; init; }
Property Value
Timestamp
Timestamp.
public MonotonicTime Timestamp { get; init; }