Exemple #1
0
        private async Task <bool> HandleTruckArrived(string message)
        {
            var receivedTruck = JsonSerializer.Deserialize <Truck>(message);

            await _truckRepository.CreateTruckAsync(receivedTruck);

            return(true);
        }