Пример #1
0
        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();
        }
Пример #2
0
 public BasketsRepository(BasketsDbContext context)
 {
     _context = context;
 }