Table of Contents

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

Creates a role with the given name. If the name matches a canonical role, IsCanonical will be true.

public Role(string name)

Parameters

name string

Fields

The canonical Data Processor role.

public static readonly Role DataProcessor

Field Value

Role

The canonical Data Producer role.

public static readonly Role DataProducer

Field Value

Role

The canonical Data Store role.

public static readonly Role DataStore

Field Value

Role

The canonical Human-Machine Interface role.

public static readonly Role HumanMachineInterface

Field Value

Role

Properties

Indicates whether this role is one of the four canonical SmarterLink roles.

[JsonIgnore]
public bool IsCanonical { get; }

Property Value

bool