Esempio n. 1
0
        public virtual async Task ImportCharges(IEnumerable <ImportChargesCommandHandler.ImportedCharge> data)
        {
            var eve = new ChargesImportedEvent()
            {
                ImportedCharges = data
            };

            Emit(eve);
            await Task.CompletedTask;
        }
Esempio n. 2
0
 public void Apply(ChargesImportedEvent aggregateEvent)
 {
     ImportedCharges = aggregateEvent.ImportedCharges;
 }