示例#1
0
        private void handleCargoUpdatedEvent(CargoUpdatedEvent @event)
        {
            Ship ship = GetCurrentShip();

            if (ship != null)
            {
                ship.cargocarried = @event.cargocarried;
            }
            writeShips();
        }
 public Task Handle(CargoUpdatedEvent notification, CancellationToken cancellationToken)
 {
     return(Task.CompletedTask);
 }