Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
HttpxResponseDataEventArgs.cs
1using System;
2
4{
8 public class HttpxResponseDataEventArgs : EventArgs
9 {
10 private readonly HttpxResponseEventArgs response;
11 private readonly byte[] data;
12 private readonly string streamId;
13 private readonly bool last;
14 private readonly bool constantBuffer;
15 private readonly object state;
16
28 byte[] Data, string StreamId, bool Last, object State)
29 : base()
30 {
31 this.response = Response;
32 this.constantBuffer = ConstantBuffer;
33 this.data = Data;
34 this.streamId = StreamId;
35 this.last = Last;
36 this.state = State;
37 }
38
42 public HttpxResponseEventArgs HttpxResponse => this.response;
43
48 public bool ConstantBuffer => this.constantBuffer;
49
53 public byte[] Data => this.data;
54
58 public string StreamId => this.streamId;
59
63 public bool Last => this.last;
64
68 public object State => this.state;
69 }
70}
object State
State object passed to the original request.
HttpxResponseDataEventArgs(HttpxResponseEventArgs Response, bool ConstantBuffer, byte[] Data, string StreamId, bool Last, object State)
Event arguments for HTTPX data responses.
bool ConstantBuffer
If the contents of the buffer remains constant (true), or if the contents in the buffer may change af...