Ejemplo n.º 1
0
 public ConcertController(IConcertRepository concertRepository, IConcertSearchService concertSearchService, IEventSenderService eventSenderService, TelemetryClient telemetryClient)
 {
     this.concertRepository    = concertRepository;
     this.concertSearchService = concertSearchService;
     this.eventSenderService   = eventSenderService;
     this.telemetryClient      = telemetryClient;
 }
Ejemplo n.º 2
0
 public ApplicationInitializer(
     IConcertRepository concertRepository,
     IConcertSearchService concertSearchService,
     IEventSenderService eventSenderService)
 {
     // Initialize all resources at application startup.
     concertRepository.Initialize();
     concertSearchService.Initialize();
     eventSenderService.Initialize();
 }
Ejemplo n.º 3
0
        public MailingService(
            IMvcContext context,
            IMongoGenericRepository <Subscriber> subscribersRepository,
            ISearchRepository <EventTagSearchItem, IEventTag> tagsRepository,
            IEventSenderService eventSender,
            ILog logger)
        {
            Throw.IfNull(context, nameof(context));
            Throw.IfNull(subscribersRepository, nameof(subscribersRepository));
            Throw.IfNull(tagsRepository, nameof(tagsRepository));
            Throw.IfNull(eventSender, nameof(eventSender));
            Throw.IfNull(logger, nameof(logger));

            _context = context;
            _subscribersRepository = subscribersRepository;
            _tagsRepository        = tagsRepository;
            _eventSender           = eventSender;
            _logger = logger;
        }
Ejemplo n.º 4
0
 public ConcertController(IConcertRepository concertRepository, IConcertSearchService concertSearchService, IEventSenderService eventSenderService)
 {
     this.concertRepository    = concertRepository;
     this.concertSearchService = concertSearchService;
     this.eventSenderService   = eventSenderService;
 }