Class Role
- Namespace
- SmarterLink.Core.Models
- Assembly
- SmarterLink.Core.dll
Describes a participant's function in the SmarterLink system. Four canonical roles are defined; custom roles are permitted but carry no standard event definitions.
public record Role : ValueOf<string>, IEquatable<ValueOf<string>>, IEquatable<Role>
- Inheritance
-
Role
- Implements
- Inherited Members
Constructors
Role(string)
Creates a role with the given name. If the name matches a canonical role, IsCanonical will be true.
public Role(string name)
Parameters
namestring
Fields
DataProcessor
The canonical Data Processor role.
public static readonly Role DataProcessor
Field Value
DataProducer
The canonical Data Producer role.
public static readonly Role DataProducer
Field Value
DataStore
The canonical Data Store role.
public static readonly Role DataStore
Field Value
HumanMachineInterface
The canonical Human-Machine Interface role.
public static readonly Role HumanMachineInterface
Field Value
Properties
IsCanonical
Indicates whether this role is one of the four canonical SmarterLink roles.
[JsonIgnore]
public bool IsCanonical { get; }