Beispiel #1
0
 //CTOR
 public TangleController(ITangleRepository repo, ILogger <TangleController> logger) // dependency injection
 {
     _repository = (TangleRepository)repo;
     _logger     = (Logger <TangleController>)logger;
 }
Beispiel #2
0
 //CTOR
 public CoreController(ILogger <CoreController> logger, IConfiguration configuration, ITangleRepository repo) // dependency injection
 {
     //_repository = (TangleRepository)repo;
     _logger = (Logger <CoreController>)logger;
     _conf   = configuration;
     _repo   = (TangleRepository)repo;
 }