Class FromEventSourceAttribute<TSource>
- Namespace
- Cratis.Chronicle.EventSources
- Assembly
- Cratis.Chronicle.dll
Filters a reactor or reducer to events from a declared event source and stream.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
public sealed class FromEventSourceAttribute<TSource> : Attribute where TSource : IEventSource
Type Parameters
TSourceThe event source definition that owns the stream.
- Inheritance
-
FromEventSourceAttribute<TSource>
- Inherited Members
- Extension Methods
Constructors
FromEventSourceAttribute(string)
Filters a reactor or reducer to events from a declared event source and stream.
public FromEventSourceAttribute(string stream)
Parameters
streamstringThe declared stream to observe.
Properties
Stream
Gets the declared event stream to observe.
public string Stream { get; }