예제 #1
0
 public EFaxHelperService(IEFaxApi eFaxApi, ILogManager logManager, ISettings settings)
 {
     _eFaxApi               = eFaxApi;
     _logger                = logManager.GetLogger <EFaxHelperService>();
     _maximumWaitTime       = settings.MaximumTimeToWaitApi;
     _timeIntervalToPingApi = settings.TimeIntervalToPingApi;
 }
예제 #2
0
        public PhysicianPartnerSendFaxPollingAgent(INotificationRepository notificationRepository, ICalendar calendar, ILogManager logManager, INotificationMediumRepository notificationMediumRepository, IEFaxApi eFaxApi, IEventCustomerNotificationRepository eventCustomerNotificationRepository, IEventCustomerRepository eventCustomerRepository, ICustomerRepository customerRepository, IEmailNotificationModelsFactory emailNotificationModelsFactory, INotifier notifier, IPrimaryCarePhysicianRepository primaryCarePhysicianRepository, IEventRepository eventRepository, ISettings settings, INotificationTypeRepository notificationTypeRepository)
        {
            _notificationRepository = notificationRepository;
            _calendar = calendar;
            _notificationMediumRepository = notificationMediumRepository;
            _eFaxApi = eFaxApi;
            _eventCustomerNotificationRepository = eventCustomerNotificationRepository;
            _eventCustomerRepository             = eventCustomerRepository;
            _customerRepository             = customerRepository;
            _emailNotificationModelsFactory = emailNotificationModelsFactory;
            _notifier = notifier;
            _primaryCarePhysicianRepository = primaryCarePhysicianRepository;
            _eventRepository            = eventRepository;
            _notificationTypeRepository = notificationTypeRepository;

            _timeIntervalToPingApi = settings.TimeIntervalToPingApi;
            _emergencyFaxNumber    = settings.EmergencyFaxNumber;
            _maximumWaitTime       = settings.MaximumTimeToWaitApi;

            _logger = logManager.GetLogger <NotificationPollingAgent>();
        }