Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
EndpointResponse.cs
1
using
System
;
2
using
System.Collections.Generic
;
3
using
System.Net
;
4
5
namespace
Waher.Networking.Cluster
6
{
10
public
class
EndpointResponse
<ResponseType>
11
{
12
private
readonly IPEndPoint endpoint;
13
private
readonly ResponseType response;
14
private
readonly Exception error;
15
16
internal
EndpointResponse
(IPEndPoint
Endpoint
, ResponseType
Response
,
17
Exception
Error
)
18
{
19
this.endpoint =
Endpoint
;
20
this.response =
Response
;
21
this.error =
Error
;
22
}
23
27
public
IPEndPoint
Endpoint
=> this.endpoint;
28
32
public
ResponseType
Response
=> this.response;
33
37
public
Exception
Error
=> this.error;
38
42
public
bool
Ok
=> this.error is
null
;
43
}
44
}
Waher.Networking.Cluster.EndpointResponse
Contains the response from one of the endpoints in the cluster.
Definition:
EndpointResponse.cs:11
Waher.Networking.Cluster.EndpointResponse.Ok
bool Ok
If the command was executed without error on the endpoint.
Definition:
EndpointResponse.cs:42
Waher.Networking.Cluster.EndpointResponse.Error
Exception Error
Any error returned from the endpoint.
Definition:
EndpointResponse.cs:37
Waher.Networking.Cluster.EndpointResponse.Endpoint
IPEndPoint Endpoint
Remote endpoint
Definition:
EndpointResponse.cs:27
Waher.Networking.Cluster.EndpointResponse.Response
ResponseType Response
Response from endpoint
Definition:
EndpointResponse.cs:32
System.Collections.Generic
Definition:
ImplTypes.g.cs:4970
System.Net
Definition:
ImplTypes.g.cs:19120
System
Definition:
Adapters.g.cs:58
Waher.Networking.Cluster
Definition:
Program.cs:9
IoTGateway
Networking
Waher.Networking.Cluster
EndpointResponse.cs
Generated by
1.9.5