Exemple #1
0
 public void Register(IEventFlowOptions eventFlowOptions)
 {
     eventFlowOptions
     .RegisterElasticsearch()
     .AddDefaults(typeof(DomainModule).Assembly)
     .AddAspNetCore();
 }
 public void Register(IEventFlowOptions eventFlowOptions)
 {
     eventFlowOptions
     .RegisterElasticsearch()
     .AddDefaults(typeof(ElasticsearchReadModelModule).Assembly)
     .RegisterServices(r => r.Register <BookingReadModelIndexer, BookingReadModelIndexer>())
     .UseElasticsearchReadModel <BookingReadModel>();
 }