Class EventStreamAttribute

Namespace
Cratis.Chronicle.EventSources
Assembly
Cratis.Chronicle.dll

Declares an event stream on an IEventSource definition.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = true, Inherited = false)]
public sealed class EventStreamAttribute : Attribute
Inheritance
EventStreamAttribute
Inherited Members
Extension Methods

Remarks

The name becomes the event stream type written on events appended to the stream. The format of the event stream id is left to the caller and is not declared.

Constructors

EventStreamAttribute(string)

Declares an event stream on an IEventSource definition.

public EventStreamAttribute(string name)

Parameters

name string

The name of the stream.

Remarks

The name becomes the event stream type written on events appended to the stream. The format of the event stream id is left to the caller and is not declared.

Properties

Concurrency

Gets or sets the dimensions that take part in concurrency checks for the stream. Falls back to the event source when none.

public ConcurrencyDimensions Concurrency { get; set; }

Property Value

ConcurrencyDimensions

Description

Gets or sets the description of the stream.

public string Description { get; set; }

Property Value

string

Name

Gets the name of the stream.

public string Name { get; }

Property Value

string