Interface IEventStoreSubscriptionBuilder
- Namespace
- Cratis.Chronicle.EventStoreSubscriptions
- Assembly
- Cratis.Chronicle.dll
Defines a builder for configuring an event store subscription.
public interface IEventStoreSubscriptionBuilder
Methods
Build()
Build the subscription definition.
EventStoreSubscriptionDefinition Build()
Returns
WithEventType(EventTypeId)
Specify an event type by its identifier to subscribe to.
IEventStoreSubscriptionBuilder WithEventType(EventTypeId eventTypeId)
Parameters
eventTypeIdEventTypeIdThe EventTypeId of the event type to include.
Returns
- IEventStoreSubscriptionBuilder
The builder for continuation.
WithEventType<TEvent>()
Specify the event types to subscribe to. If not specified, all events are subscribed.
IEventStoreSubscriptionBuilder WithEventType<TEvent>()
Returns
- IEventStoreSubscriptionBuilder
The builder for continuation.
Type Parameters
TEventThe event type to include.