public static IEventSourcingConfiguration WithEventStoreAsES( this IEventSourcingConfiguration configuration ) { return(configuration.WithEventStore <EventStore.EventStore>((builder, config) => { var eventStoreConfig = new EventStoreConfiguration(config); builder.WithEventStoreDatabase(eventStoreConfig); builder.RegisterType <EventConverter>().AsSelf().SingleInstance(); })); }