Beispiel #1
0
        private async Task <bool> HandleShipUndocked(string message)
        {
            ShipDockedMessageEvent receivedShip = JsonSerializer.Deserialize <ShipDockedMessageEvent>(message);
            Ship existingShip = await _refuelService.GetShipAsync(receivedShip.ShipId);

            Console.WriteLine("Ship undocked: " + existingShip.Id);
            await _refuelService.DeleteShipAsync(existingShip.Id);

            return(true);
        }