示例#1
0
        public async Task <Starship> CreateStarshipAsync(string shipName, string currentLocation, string pilotName, CancellationToken cancellationToken)
        {
            var starship = Starship.CreateStartship(shipName, currentLocation, pilotName);

            await SaveAsync(starship, cancellationToken);

            return(starship);
        }