예제 #1
0
 public Consumer(IMyAggregateService allServices)
 {
     if (allServices == null)
     {
         throw new ArgumentNullException(paramName: nameof(allServices));
     }
     AllServices = allServices;
 }
예제 #2
0
 public Consumer(IMyAggregateService allServices) // using only one service, not 4 !!!!!
 {
     AllServices = allServices ?? throw new ArgumentNullException(nameof(allServices));
 }
 public SomeController(
     IMyAggregateService aggregateService)
 {
     _aggregateService = aggregateService;
 }
예제 #4
0
 public Consumer(IMyAggregateService allServices)
 {
     this.allServices = allServices ?? throw new ArgumentNullException(nameof(allServices));
 }