Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NodeRemoved.cs
1using System;
2
4{
8 public class NodeRemoved : NodeEvent
9 {
13 public NodeRemoved()
14 : base()
15 {
16 }
17
21 public override SourceEventType EventType
22 {
23 get { return SourceEventType.NodeRemoved; }
24 }
25
30 public static NodeRemoved FromNode(INode Node)
31 {
32 return new NodeRemoved()
33 {
34 NodeId = Node.NodeId,
35 Partition = Node.Partition,
38 SourceId = Node.SourceId,
39 Timestamp = DateTime.Now
40 };
41 }
42
43 }
44}
static string EmptyIfSame(string Id1, string Id2)
Returns Id1 if different, string.Empty if the same.
Definition: NodeAdded.cs:93
Abstract base class for all node events.
Definition: NodeEvent.cs:9
string NodeId
Node identity.
Definition: NodeEvent.cs:29
string LogId
Log identity, if different from NodeId.
Definition: NodeEvent.cs:51
string Partition
Optional partition.
Definition: NodeEvent.cs:40
string LocalId
Local identity, if different from NodeId.
Definition: NodeEvent.cs:62
static NodeRemoved FromNode(INode Node)
Creates an event object from a node object.
Definition: NodeRemoved.cs:30
override SourceEventType EventType
Type of data source event.
Definition: NodeRemoved.cs:22
NodeRemoved()
Node removed event.
Definition: NodeRemoved.cs:13
string SourceId
Data source identity.
Definition: SourceEvent.cs:40
DateTime Timestamp
Timestamp of event.
Definition: SourceEvent.cs:50
Interface for nodes that are published through the concentrator interface.
Definition: INode.cs:49
string LogId
If provided, an ID for the node, as it would appear or be used in system logs. Can be null,...
Definition: INode.cs:62
string LocalId
If provided, an ID for the node, but unique locally between siblings. Can be null,...
Definition: INode.cs:54
string Partition
Optional partition in which the Node ID is unique.
string SourceId
Optional ID of source containing node.
SourceEventType
Data Source event types