protected override IEventFlowOptions Options(IEventFlowOptions eventFlowOptions)
        {
            var serviceCollection = new ServiceCollection();

            serviceCollection.AddScoped <IDbContext, DbContext>();

            return(base.Options(eventFlowOptions
                                .UseServiceCollection(serviceCollection))
                   .AddQueryHandler <DbContextQueryHandler, DbContextQuery, string>());
        }
 protected override IEventFlowOptions Options(IEventFlowOptions eventFlowOptions)
 {
     return(base.Options(eventFlowOptions
                         .UseServiceCollection(new ServiceCollection())));
 }