コード例 #1
0
 public IndexModel(IServiceProvider serviceProvider, ILogger <IndexModel> logger)
 {
     _serviceProvider = serviceProvider;
     _logger          = logger;
     _departmentStore = serviceProvider.GetService <IDepartmentStore>();
 }
コード例 #2
0
 public DepartmentManager(IDepartmentStore baseStore)
     : base(baseStore)
 {
     DepartmentStore = baseStore;
 }
コード例 #3
0
 public DepartmentController(IServiceProvider serviceProvider, ILogger <DepartmentController> logger)
 {
     _serviceProvider = serviceProvider;
     _logger          = logger;
     _departmentStore = serviceProvider.GetService <IDepartmentStore>();
 }