예제 #1
0
        public async Task HandleAsync(CustomerCreated @event, ICorrelationContext context)
        {
            var customer = await _customersService.GetByIdAsync(@event.Id);

            await _customersRepository.CreateAsync(customer);

            await _cache.SetCartAsync(@event.Id, new Cart());
        }