コード例 #1
0
 public ApplicationService(IQueryPending queryPending, IFileService fileService)
 {
     _queryPending = queryPending ?? throw new ArgumentNullException(nameof(queryPending));
     _fileService  = fileService ?? throw new ArgumentNullException(nameof(fileService));
 }
コード例 #2
0
 public FileService(IOptions <ConnectionStrings> connectionString, IQueryPending queryPending, IOptions <IOSettings> ioSettings)
 {
     _connectionString = connectionString ?? throw new ArgumentNullException(nameof(connectionString));
     _queryPending     = queryPending ?? throw new ArgumentNullException(nameof(queryPending));
     _ioSettings       = ioSettings ?? throw new ArgumentNullException(nameof(ioSettings));
 }