Class ReactorAttribute
Attribute used to adorn classes to tell Cratis that the class is an Reactor.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class ReactorAttribute : Attribute
- Inheritance
-
ReactorAttribute
- Inherited Members
Remarks
Initializes a new instance of ReactorAttribute.
Constructors
ReactorAttribute(string, string?)
Attribute used to adorn classes to tell Cratis that the class is an Reactor.
public ReactorAttribute(string id = "", string? eventSequence = null)
Parameters
id
stringOptional Id represented as string, if not used it will default to the fully qualified type name.
eventSequence
stringOptional the name of the event sequence to observe. Defaults to the event log.
Remarks
Initializes a new instance of ReactorAttribute.
Properties
EventSequenceId
Gets the unique identifier for an event log.
public EventSequenceId EventSequenceId { get; }
Property Value
Id
Gets the unique identifier for an Reactor.
public ReactorId Id { get; }