Class EventSourceAttribute
- Namespace
- Cratis.Chronicle.EventSources
- Assembly
- Cratis.Chronicle.dll
Names an IEventSource definition.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
public sealed class EventSourceAttribute : Attribute
- Inheritance
-
EventSourceAttribute
- Inherited Members
- Extension Methods
Remarks
The name becomes the event source type written on every event appended through the definition.
Constructors
EventSourceAttribute(string?)
Names an IEventSource definition.
public EventSourceAttribute(string? name = null)
Parameters
namestringOptional name of the event source. Defaults to the name of the type without a trailing "EventSource".
Remarks
The name becomes the event source type written on every event appended through the definition.
Properties
Concurrency
Gets or sets the default dimensions that take part in concurrency checks for the event source.
public ConcurrencyDimensions Concurrency { get; set; }
Property Value
Description
Gets or sets the description of the event source.
public string Description { get; set; }
Property Value
Name
Gets the explicit name of the event source, if any.
public string? Name { get; }