Example #1
0
 public ZooController(IZooService animalService)
 {
     _zooService = animalService;
 }
Example #2
0
 public ZooModule(IZooService service)
 {
     Get["sound/{name}", true] = async(_, ct) => await service.GetSoundByName(_.name);
 }
Example #3
0
 public AnimalController(IZooService zooService, Policy policy)
 {
     _zooService = zooService;
     _policy     = policy;
 }