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

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. When not specified, the event sequence is inferred from the event types handled by the reactor.

Properties

EventSequenceId

Gets the explicit event sequence identifier, or null if not specified.

public EventSequenceId? EventSequenceId { get; }

Property Value

EventSequenceId

Remarks

When null, the event sequence is inferred from the event types handled by the reactor. If all handled event types originate from the same event store (via EventStoreAttribute), the reactor will automatically subscribe to the corresponding inbox event sequence.

Id

Gets the unique identifier for an Reactor.

public ReactorId Id { get; }

Property Value

ReactorId