コード例 #1
0
 public ResultService(IResultsRepository resultsRepository, ICpuRepository cpuRepository,
                      ITopologyRepository topologyRepository, IIdProvider idProvider)
 {
     _resultsRepository  = resultsRepository ?? throw new ArgumentNullException(nameof(resultsRepository));
     _cpuRepository      = cpuRepository ?? throw new ArgumentNullException(nameof(cpuRepository));
     _idProvider         = idProvider ?? throw new ArgumentNullException(nameof(idProvider));
     _topologyRepository = topologyRepository ?? throw new ArgumentNullException(nameof(topologyRepository));
 }
コード例 #2
0
 public DynamicPortsController(IMapper mapper,
                               IConfiguration configuration,
                               ITopologyRepository repository,
                               TopoEditContext topoEditContext)
 {
     this.mapper          = mapper;
     this.configuration   = configuration;
     this.repository      = repository ?? throw new ArgumentNullException(nameof(repository));
     this.topoEditContext = topoEditContext ?? throw new ArgumentNullException(nameof(topoEditContext));
 }