Пример #1
0
        public Task Handle(Meter meter, decimal reading)
        {
            meter.AddReading(reading);

            message?.Publish(new MeterReadingSaved {
                Meter = meter.Id
            });

            return(Task.CompletedTask);
        }