diff --git a/src/event-store.module.ts b/src/event-store.module.ts index d7b0320..5d25aa4 100644 --- a/src/event-store.module.ts +++ b/src/event-store.module.ts @@ -63,8 +63,27 @@ export class EventStoreModule { }, inject: [...options.inject, Logger], }, + { + provide: EventStoreHealthIndicator, + useFactory: eventStore => { + return new EventStoreHealthIndicator(eventStore); + }, + inject: [EventStore], + }, + { + provide: EventStoreSubscriptionHealthIndicator, + useFactory: eventStore => { + return new EventStoreSubscriptionHealthIndicator(eventStore); + }, + inject: [EventStore], + }, + ], + exports: [ + EventStore, + EventStoreModule, + EventStoreHealthIndicator, + EventStoreSubscriptionHealthIndicator, ], - exports: [EventStoreModule], }; } }