예제 #1
0
 public IPManagerService(IIPManagerRepository repository) // Dependency Injection
 {
     this.repository = repository;
 }
예제 #2
0
 public IPManagerController(IMemoryCache memoryCache, DataContext context, IConfiguration configuration) // Dependency Injection
 {
     this.memoryCache   = memoryCache;
     this.configuration = configuration;
     repository         = new IPManagerRepository(context);
 }