コード例 #1
0
 public string Get()
 {
     _bikeService.AddWheel();
     _carService.AddPassanger();
     _trainService.AddWagon();
     return("Hello world!");
 }
コード例 #2
0
 public void AddWagon()
 {
     _wagons++;
     _bikeService.AddWheel();
     _log.LogInformation("Added a train wagon! Now there is {NumberOfWagons} wagons :-).", _wagons);
 }