public async Task Handle(StationRenamed message)
        {
            var station = _viewStore.Get <StationListView>(message.Id);

            station.Name = message.NewName;

            await _viewStore.Update(station);
        }
예제 #2
0
 private void Apply(StationRenamed stationRenamed)
 {
     _id  = stationRenamed.Id;
     Name = stationRenamed.NewName;
 }