Table of Contents

Class ReactorAttribute

Namespace
Cratis.Chronicle.Reactors
Assembly
Cratis.Chronicle.dll

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 string

Optional Id represented as string, if not used it will default to the fully qualified type name.

eventSequence string

Optional 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

EventSequenceId

Id

Gets the unique identifier for an Reactor.

public ReactorId Id { get; }

Property Value

ReactorId