Class PublishToAttribute
- Namespace
- Cratis.Chronicle.Sinks
- Assembly
- Cratis.Chronicle.dll
Attribute to adorn an event type to select the event sequence a projection or reducer that targets it publishes to.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class PublishToAttribute : Attribute
- Inheritance
-
PublishToAttribute
- Inherited Members
- Extension Methods
Remarks
Without the attribute the outbox is the destination. The event log is never a valid destination.
Constructors
PublishToAttribute(string)
Attribute to adorn an event type to select the event sequence a projection or reducer that targets it publishes to.
public PublishToAttribute(string sequence)
Parameters
sequencestringString representation of the destination EventSequenceId.
Remarks
Without the attribute the outbox is the destination. The event log is never a valid destination.
Properties
Sequence
Gets the destination EventSequenceId.
public EventSequenceId Sequence { get; }