Table of Contents

Class EventStoreSubscriptionBuilder

Namespace
Cratis.Chronicle.EventStoreSubscriptions
Assembly
Cratis.Chronicle.dll

Represents an implementation of IEventStoreSubscriptionBuilder.

public class EventStoreSubscriptionBuilder : IEventStoreSubscriptionBuilder
Inheritance
EventStoreSubscriptionBuilder
Implements
Inherited Members

Constructors

EventStoreSubscriptionBuilder(IEventTypes, EventStoreSubscriptionId, string)

Represents an implementation of IEventStoreSubscriptionBuilder.

public EventStoreSubscriptionBuilder(IEventTypes eventTypes, EventStoreSubscriptionId subscriptionId, string sourceEventStore)

Parameters

eventTypes IEventTypes

The IEventTypes for discovering event type identifiers.

subscriptionId EventStoreSubscriptionId

The unique EventStoreSubscriptionId for this subscription.

sourceEventStore string

The name of the source event store to subscribe to.

Methods

Build()

Build the subscription definition.

public EventStoreSubscriptionDefinition Build()

Returns

EventStoreSubscriptionDefinition

The EventStoreSubscriptionDefinition.

WithEventType(EventTypeId)

Specify an event type by its identifier to subscribe to.

public IEventStoreSubscriptionBuilder WithEventType(EventTypeId eventTypeId)

Parameters

eventTypeId EventTypeId

The 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.

public IEventStoreSubscriptionBuilder WithEventType<TEvent>()

Returns

IEventStoreSubscriptionBuilder

The builder for continuation.

Type Parameters

TEvent

The event type to include.