示例#1
0
        public EventCollectionController(
            IEventCollectionManagementService eventCollectionManagementService,
            IEventCollectionRetrievalService eventCollectionRetrievalService)
        {
            _eventCollectionManagementService = eventCollectionManagementService ?? throw
                                                    new ArgumentNullException(nameof(eventCollectionManagementService));

            _eventCollectionRetrievalService = eventCollectionRetrievalService ?? throw
                                                   new ArgumentNullException(nameof(eventCollectionRetrievalService));
        }
 public EventCollectionController(IEventCollectionManagementService service)
 {
     _service = service ?? throw new ArgumentNullException(nameof(service));
 }