Beispiel #1
0
 public IndexModel(
     IInspectorService inspectorService,
     IOptions <CoreLoggerConfiguration> options)
 {
     _service = inspectorService ?? throw new ArgumentNullException($"Injection fail for {nameof(IInspectorService)} in CoreLogger.Inspector");
     Options  = options.Value ?? throw new ArgumentNullException($"Injection fail for {nameof(CoreLoggerConfiguration)} in CoreLogger.Inspector");
 }
 public RecapModel(IInspectorService inspectorService)
 {
     _service = inspectorService ?? throw new ArgumentNullException($"Injection fail for {nameof(IInspectorService)} in CoreLogger.Inspector");
     Options  = _service.Options;
     _loadDatasources();
 }
 public DetailModel(IInspectorService inspectorService)
 {
     _service = inspectorService ?? throw new ArgumentNullException($"Injection fail for {nameof(IInspectorService)} in CoreLogger.Inspector");
     Options  = _service.Options;
 }