public void Configure(IApplicationBuilder app, IHostingEnvironment env, BasketsDbContext basketsDbContext, IBrokerEndpointsConfigurationBuilder endpoints) { ConfigureRequestPipeline(app); basketsDbContext.Database.Migrate(); var brokerBasePath = _configuration["Broker:Path"]; endpoints .AddOutbound <IIntegrationEvent>(FileSystemEndpoint.Create("basket-events", brokerBasePath)) .AddInbound(FileSystemEndpoint.Create("catalog-events", brokerBasePath)) .Connect(); }
public BasketsRepository(BasketsDbContext context) { _context = context; }