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